大模型地址改正

This commit is contained in:
xiao12feng 2025-12-02 17:14:03 +08:00
parent 5456739b22
commit 6c78a7b9c2
3 changed files with 24 additions and 24 deletions

View File

@ -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() {

View File

@ -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 = [

View File

@ -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 = [