大模型地址改正
This commit is contained in:
parent
5456739b22
commit
6c78a7b9c2
|
|
@ -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() {
|
||||
|
|
|
|||
|
|
@ -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 = [
|
||||
|
|
|
|||
|
|
@ -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 = [
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user