mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-22 20:37:48 +00:00
* feat: team permission refine (#4402) * chore: team permission extend * feat: manage team permission * chore: api auth * fix: i18n * feat: add initv493 * fix: test, org auth manager * test: app test for refined permission * update init sh * fix: add/remove manage permission (#4427) * fix: add/remove manage permission * fix: github action fastgpt-test * fix: mock create model * fix: team write permission * fix: ts * account permission --------- Co-authored-by: Finley Ge <32237950+FinleyGe@users.noreply.github.com>
This commit is contained in:
@@ -3,6 +3,7 @@ import { ModelProviderIdType } from 'packages/global/core/ai/provider';
|
||||
|
||||
export default async function setupModels() {
|
||||
global.llmModelMap = new Map<string, any>();
|
||||
global.embeddingModelMap = new Map<string, any>();
|
||||
global.llmModelMap.set('gpt-4o-mini', {
|
||||
type: ModelTypeEnum.llm,
|
||||
model: 'gpt-4o-mini',
|
||||
@@ -47,6 +48,22 @@ export default async function setupModels() {
|
||||
maxContext: 4096,
|
||||
maxResponse: 4096,
|
||||
quoteMaxToken: 2048
|
||||
},
|
||||
embedding: {
|
||||
type: ModelTypeEnum.embedding,
|
||||
model: 'text-embedding-ada-002',
|
||||
name: 'text-embedding-ada-002',
|
||||
avatar: 'text-embedding-ada-002',
|
||||
isActive: true,
|
||||
isDefault: true,
|
||||
isCustom: false,
|
||||
requestUrl: undefined,
|
||||
requestAuth: undefined,
|
||||
defaultConfig: undefined,
|
||||
defaultToken: 1,
|
||||
maxToken: 100,
|
||||
provider: 'OpenAI',
|
||||
weight: 1
|
||||
}
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user