diff --git a/xinli-ui/src/views/psychology/report/comprehensive.vue b/xinli-ui/src/views/psychology/report/comprehensive.vue index 6ef162e1..10c3a54a 100644 --- a/xinli-ui/src/views/psychology/report/comprehensive.vue +++ b/xinli-ui/src/views/psychology/report/comprehensive.vue @@ -151,15 +151,15 @@ export default { generating: false, reportDialogVisible: false, comprehensiveReport: '', - // ========== Kimi API ========== - API_URL: 'https://api.moonshot.cn/v1/chat/completions', - API_KEY: 'sk-U9fdriPxwBcrpWW0Ite3N0eVtX7VxnqqqYUIBAdWd1hgEA9m', - MODEL: 'moonshot-v1-32k', + // ========== Ollama本地大模型配置 ========== + API_URL: 'http://192.168.0.106:11434/api/chat', + API_KEY: '', // 本地模型不需要API Key + MODEL: 'deepseek-r1:32b', - // ========== 备用配置(Ollama本地大模型)========== - // API_URL: 'http://192.168.0.106:11434/api/chat', - // API_KEY: '', // 本地模型不需要API Key - // MODEL: 'deepseek-r1:32b' + // ========== 备用配置(Kimi API)========== + // API_URL: 'https://api.moonshot.cn/v1/chat/completions', + // API_KEY: 'sk-U9fdriPxwBcrpWW0Ite3N0eVtX7VxnqqqYUIBAdWd1hgEA9m', + // MODEL: 'moonshot-v1-32k' } }, created() { diff --git a/xinli-ui/src/views/psychology/report/detail.vue b/xinli-ui/src/views/psychology/report/detail.vue index d47c1fb3..5d738d5a 100644 --- a/xinli-ui/src/views/psychology/report/detail.vue +++ b/xinli-ui/src/views/psychology/report/detail.vue @@ -403,14 +403,14 @@ export default { this.aiError = ''; this.aiResult = ''; - // Kimi API - const API_URL = 'https://api.moonshot.cn/v1/chat/completions'; - const API_KEY = 'sk-U9fdriPxwBcrpWW0Ite3N0eVtX7VxnqqqYUIBAdWd1hgEA9m'; - const MODEL = 'moonshot-v1-32k'; - // 备用:Ollama本地大模型配置 - // const API_URL = 'http://192.168.0.106:11434/api/chat'; - // const API_KEY = ''; // 本地模型不需要API Key - // const MODEL = 'deepseek-r1:32b'; + // Ollama本地大模型配置 + const API_URL = 'http://192.168.0.106:11434/api/chat'; + const API_KEY = ''; // 本地模型不需要API Key + const MODEL = 'deepseek-r1:32b'; + // 备用:Kimi API + // const API_URL = 'https://api.moonshot.cn/v1/chat/completions'; + // const API_KEY = 'sk-U9fdriPxwBcrpWW0Ite3N0eVtX7VxnqqqYUIBAdWd1hgEA9m'; + // const MODEL = 'moonshot-v1-32k'; // 构建系统提示词 const SYSTEM_PROMPT = [ diff --git a/xinli-ui/src/views/psychology/report/index.vue b/xinli-ui/src/views/psychology/report/index.vue index 26635b01..bf0c7f84 100644 --- a/xinli-ui/src/views/psychology/report/index.vue +++ b/xinli-ui/src/views/psychology/report/index.vue @@ -709,14 +709,14 @@ export default { }, /** AI分析报告内容 */ async generateAIAnalysis(reportContent, reportTitle, reportType) { - // Kimi API - const API_URL = 'https://api.moonshot.cn/v1/chat/completions'; - const API_KEY = 'sk-U9fdriPxwBcrpWW0Ite3N0eVtX7VxnqqqYUIBAdWd1hgEA9m'; - const MODEL = 'moonshot-v1-32k'; - // 备用:Ollama本地大模型配置 - // const API_URL = 'http://192.168.0.106:11434/api/chat'; - // const API_KEY = ''; // 本地模型不需要API Key - // const MODEL = 'deepseek-r1:32b'; + // Ollama本地大模型配置 + const API_URL = 'http://192.168.0.106:11434/api/chat'; + const API_KEY = ''; // 本地模型不需要API Key + const MODEL = 'deepseek-r1:32b'; + // 备用:Kimi API + // const API_URL = 'https://api.moonshot.cn/v1/chat/completions'; + // const API_KEY = 'sk-U9fdriPxwBcrpWW0Ite3N0eVtX7VxnqqqYUIBAdWd1hgEA9m'; + // const MODEL = 'moonshot-v1-32k'; // 构建系统提示词 const SYSTEM_PROMPT = [