diff --git a/constants/ai/aiModels.js b/constants/ai/aiModels.js new file mode 100644 index 0000000..dac23f5 --- /dev/null +++ b/constants/ai/aiModels.js @@ -0,0 +1,29 @@ +const aiModels = { + openai: { + gpt3: 'text-davinci-003', + gpt4: 'gpt-4', + gpt35_turbo: 'gpt-3.5-turbo', + }, + + deepseek: { + r1: 'deepseek-ai/DeepSeek-R1', + v3: 'deepseek-ai/DeepSeek-V3', + r1_distill_Qwen_32b: 'deepseek-ai/DeepSeek-R1-Distill-Qwen-32B', //1.26 + r1_distill_Qwen_14b: 'deepseek-ai/DeepSeek-R1-Distill-Qwen-14B', //0.7 + }, + + THUDM: { + GLM4_32b: 'THUDM/GLM-4-32B-0414', // 1.89 tokens + GLMZ1_32b: 'THUDM/GLM-Z1-32B-0414', // 4 tokens + GLM4_9b: 'THUDM/GLM-4-9B-0414', //free + }, + + Qwen: { + Qwen25VL_32b: 'Qwen/Qwen2.5-VL-32B-Instruct', // 4.13 视觉 + QwenQ_32b: 'Qwen/QwQ-32B', //4/M tokens + Qwen25_72b: 'Qwen/Qwen2.5-72B-Instruct-128K', //4.13 + QwenQVQ_72b_preview: 'Qwen/QVQ-72B-Preview', //9.9 视觉 + }, +}; + +export default aiModels; diff --git a/constants/ai/prompt/keep.js b/constants/ai/prompt/keep.js new file mode 100644 index 0000000..e69de29 diff --git a/constants/ai/returnMessages.js b/constants/ai/returnMessages.js new file mode 100644 index 0000000..33fe0e9 --- /dev/null +++ b/constants/ai/returnMessages.js @@ -0,0 +1,28 @@ +// 规范ai返回形式 +const returnMessages = [ + { + type: 'message', + data: 'Hello, this is a text message.', + }, + { + type: 'image', + data: 'test', + }, + { + type: 'at', + data: 114514, + }, + { + type: 'function', + data: '1', + extra: { + params: { + 1: '1', + 2: '2', + }, + callAI: true, + }, + }, +]; + +export default returnMessages; diff --git a/index.js b/index.js index 6c45e5e..7b9da6b 100644 --- a/index.js +++ b/index.js @@ -1,7 +1,7 @@ import chalk from 'chalk'; import Version from './lib/system/version.js'; import fc from './components/json.js'; -import Path from './constants/path/path.js'; +import Path from './constants/path.js'; import { crystelfInit } from './lib/system/init.js'; import updater from './lib/system/updater.js'; diff --git a/lib/config/configControl.js b/lib/config/configControl.js index 466cc73..ec1f815 100644 --- a/lib/config/configControl.js +++ b/lib/config/configControl.js @@ -1,8 +1,8 @@ -import Path, { defaultConfig } from '../../constants/path/path.js'; +import Path, { defaultConfig } from '../../constants/path.js'; import fc from '../../components/json.js'; import path from 'path'; import fs from 'fs'; -import relativelyPath from '../../constants/path/relativelyPath.js'; +import relativelyPath from '../../constants/relativelyPath.js'; const configPath = Path.config; const configFile = path.join(configPath, 'config.json'); diff --git a/lib/system/updater.js b/lib/system/updater.js index 5ce7a30..60cce9a 100644 --- a/lib/system/updater.js +++ b/lib/system/updater.js @@ -2,7 +2,7 @@ import child_process from 'child_process'; import fs from 'fs'; import path from 'path'; import chalk from 'chalk'; -import Path from '../../constants/path/path.js'; +import Path from '../../constants/path.js'; const GIT_DIR = path.join(Path.root, '.git');