Migrate new service (#1)
This commit is contained in:
1 parent
f13ca37d63
commit
28da0263dc
109 files changed
+1160
-1053
No files matched your search
@@ -0,0 +1,43 @@
|
||||
import { IChatModel } from '@/models';
|
||||
|
||||
export const ROLE_SYSTEM = 'system';
|
||||
export const ROLE_ASSISTANT = 'assistant';
|
||||
export const ROLE_USER = 'user';
|
||||
|
||||
export const CHAT_MODEL_NAME_GPT_3_5 = 'gpt-3.5';
|
||||
export const CHAT_MODEL_NAME_GPT_3_5_BROWSING = 'gpt-3.5-browsing';
|
||||
export const CHAT_MODEL_NAME_GPT_4 = 'gpt-4';
|
||||
export const CHAT_MODEL_NAME_GPT_4_BROWSING = 'gpt-4-browsing';
|
||||
export const CHAT_MODEL_NAME_GPT_4_VISION = 'gpt-4-vision';
|
||||
|
||||
export const CHAT_SERVICE_ID = 'b1fbcc32-e218-4253-9dc3-4fe600a1bfb9';
|
||||
|
||||
export const CHAT_MODEL_GPT_3_5: IChatModel = {
|
||||
name: CHAT_MODEL_NAME_GPT_3_5,
|
||||
displayName: '3.5 - 标准',
|
||||
description: '3.5 标准模型,输入约 8 千汉字'
|
||||
};
|
||||
|
||||
export const CHAT_MODEL_GPT_3_5_BROWSING: IChatModel = {
|
||||
name: CHAT_MODEL_NAME_GPT_3_5_BROWSING,
|
||||
displayName: '3.5 - 联网',
|
||||
description: '3.5 联网模型,额外支持实时联网搜索问答'
|
||||
};
|
||||
|
||||
export const CHAT_MODEL_GPT_4: IChatModel = {
|
||||
name: CHAT_MODEL_NAME_GPT_4,
|
||||
displayName: '4.0 - 标准',
|
||||
description: '4.0 标准模型,输入约 4 千汉字'
|
||||
};
|
||||
|
||||
export const CHAT_MODEL_GPT_4_BROWSING: IChatModel = {
|
||||
name: CHAT_MODEL_NAME_GPT_4_BROWSING,
|
||||
displayName: '4.0 - 联网',
|
||||
description: '4.0 联网模型,支持实时联网搜索问答'
|
||||
};
|
||||
|
||||
export const CHAT_MODEL_GPT_4_VISION: IChatModel = {
|
||||
name: CHAT_MODEL_NAME_GPT_4_VISION,
|
||||
displayName: '4.0 - 视觉',
|
||||
description: '4.0 视觉模型,支持图片输入和识别'
|
||||
};
|
||||
@@ -0,0 +1 @@
|
||||
export const CHATDOC_SERVICE_ID = '5d732942-4d44-48be-958e-dd8474d8aa8d';
|
||||
@@ -1,4 +1,4 @@
|
||||
export const BASE_URL_DATA = 'https://platform.acedata.cloud';
|
||||
export const BASE_URL_PLATFORM = 'https://platform.acedata.cloud';
|
||||
export const BASE_URL_HUB = 'https://hub.acedata.cloud';
|
||||
export const BASE_URL_AUTH = 'https://auth.acedata.cloud';
|
||||
export const BASE_URL_API = 'https://api.acedata.cloud';
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
export * from './errorCode';
|
||||
export * from './endpoint';
|
||||
export * from './role';
|
||||
export * from './action';
|
||||
export * from './chat';
|
||||
export * from './chatdoc';
|
||||
export * from './midjourney';
|
||||
@@ -0,0 +1,26 @@
|
||||
import i18n from '@/i18n';
|
||||
import { IMidjourneyMode } from '@/models';
|
||||
|
||||
export const MIDJOURNEY_MODE_NAME_FAST = 'fast';
|
||||
export const MIDJOURNEY_MODE_NAME_RELAX = 'relax';
|
||||
export const MIDJOURNEY_MODE_NAME_TURBO = 'turbo';
|
||||
|
||||
export const MIDJOURNEY_SERVICE_ID = 'd87e5e99-b797-4ade-9e73-b896896b0461';
|
||||
|
||||
export const MIDJOURNEY_MODE_FAST: IMidjourneyMode = {
|
||||
icon: 'fa-solid fa-wind',
|
||||
name: MIDJOURNEY_MODE_NAME_FAST,
|
||||
displayName: i18n.global.t('midjourney.button.fast')
|
||||
};
|
||||
|
||||
export const MIDJOURNEY_MODE_RELAX: IMidjourneyMode = {
|
||||
icon: 'fa-solid fa-mug-saucer',
|
||||
name: MIDJOURNEY_MODE_NAME_RELAX,
|
||||
displayName: i18n.global.t('midjourney.button.relax')
|
||||
};
|
||||
|
||||
export const MIDJOURNEY_MODE_TURBO: IMidjourneyMode = {
|
||||
icon: 'fa-solid fa-bolt',
|
||||
name: MIDJOURNEY_MODE_NAME_TURBO,
|
||||
displayName: i18n.global.t('midjourney.button.turbo')
|
||||
};
|
||||
@@ -1,3 +0,0 @@
|
||||
export const ROLE_SYSTEM = 'system';
|
||||
export const ROLE_ASSISTANT = 'assistant';
|
||||
export const ROLE_USER = 'user';
|
||||
Reference in new issue
Block a user