大模型地址改正
This commit is contained in:
parent
5456739b22
commit
6c78a7b9c2
|
|
@ -151,15 +151,15 @@ export default {
|
||||||
generating: false,
|
generating: false,
|
||||||
reportDialogVisible: false,
|
reportDialogVisible: false,
|
||||||
comprehensiveReport: '',
|
comprehensiveReport: '',
|
||||||
// ========== Kimi API ==========
|
// ========== Ollama本地大模型配置 ==========
|
||||||
API_URL: 'https://api.moonshot.cn/v1/chat/completions',
|
API_URL: 'http://192.168.0.106:11434/api/chat',
|
||||||
API_KEY: 'sk-U9fdriPxwBcrpWW0Ite3N0eVtX7VxnqqqYUIBAdWd1hgEA9m',
|
API_KEY: '', // 本地模型不需要API Key
|
||||||
MODEL: 'moonshot-v1-32k',
|
MODEL: 'deepseek-r1:32b',
|
||||||
|
|
||||||
// ========== 备用配置(Ollama本地大模型)==========
|
// ========== 备用配置(Kimi API)==========
|
||||||
// API_URL: 'http://192.168.0.106:11434/api/chat',
|
// API_URL: 'https://api.moonshot.cn/v1/chat/completions',
|
||||||
// API_KEY: '', // 本地模型不需要API Key
|
// API_KEY: 'sk-U9fdriPxwBcrpWW0Ite3N0eVtX7VxnqqqYUIBAdWd1hgEA9m',
|
||||||
// MODEL: 'deepseek-r1:32b'
|
// MODEL: 'moonshot-v1-32k'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
|
|
||||||
|
|
@ -403,14 +403,14 @@ export default {
|
||||||
this.aiError = '';
|
this.aiError = '';
|
||||||
this.aiResult = '';
|
this.aiResult = '';
|
||||||
|
|
||||||
// Kimi API
|
// Ollama本地大模型配置
|
||||||
const API_URL = 'https://api.moonshot.cn/v1/chat/completions';
|
const API_URL = 'http://192.168.0.106:11434/api/chat';
|
||||||
const API_KEY = 'sk-U9fdriPxwBcrpWW0Ite3N0eVtX7VxnqqqYUIBAdWd1hgEA9m';
|
const API_KEY = ''; // 本地模型不需要API Key
|
||||||
const MODEL = 'moonshot-v1-32k';
|
const MODEL = 'deepseek-r1:32b';
|
||||||
// 备用:Ollama本地大模型配置
|
// 备用:Kimi API
|
||||||
// const API_URL = 'http://192.168.0.106:11434/api/chat';
|
// const API_URL = 'https://api.moonshot.cn/v1/chat/completions';
|
||||||
// const API_KEY = ''; // 本地模型不需要API Key
|
// const API_KEY = 'sk-U9fdriPxwBcrpWW0Ite3N0eVtX7VxnqqqYUIBAdWd1hgEA9m';
|
||||||
// const MODEL = 'deepseek-r1:32b';
|
// const MODEL = 'moonshot-v1-32k';
|
||||||
|
|
||||||
// 构建系统提示词
|
// 构建系统提示词
|
||||||
const SYSTEM_PROMPT = [
|
const SYSTEM_PROMPT = [
|
||||||
|
|
|
||||||
|
|
@ -709,14 +709,14 @@ export default {
|
||||||
},
|
},
|
||||||
/** AI分析报告内容 */
|
/** AI分析报告内容 */
|
||||||
async generateAIAnalysis(reportContent, reportTitle, reportType) {
|
async generateAIAnalysis(reportContent, reportTitle, reportType) {
|
||||||
// Kimi API
|
// Ollama本地大模型配置
|
||||||
const API_URL = 'https://api.moonshot.cn/v1/chat/completions';
|
const API_URL = 'http://192.168.0.106:11434/api/chat';
|
||||||
const API_KEY = 'sk-U9fdriPxwBcrpWW0Ite3N0eVtX7VxnqqqYUIBAdWd1hgEA9m';
|
const API_KEY = ''; // 本地模型不需要API Key
|
||||||
const MODEL = 'moonshot-v1-32k';
|
const MODEL = 'deepseek-r1:32b';
|
||||||
// 备用:Ollama本地大模型配置
|
// 备用:Kimi API
|
||||||
// const API_URL = 'http://192.168.0.106:11434/api/chat';
|
// const API_URL = 'https://api.moonshot.cn/v1/chat/completions';
|
||||||
// const API_KEY = ''; // 本地模型不需要API Key
|
// const API_KEY = 'sk-U9fdriPxwBcrpWW0Ite3N0eVtX7VxnqqqYUIBAdWd1hgEA9m';
|
||||||
// const MODEL = 'deepseek-r1:32b';
|
// const MODEL = 'moonshot-v1-32k';
|
||||||
|
|
||||||
// 构建系统提示词
|
// 构建系统提示词
|
||||||
const SYSTEM_PROMPT = [
|
const SYSTEM_PROMPT = [
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user