大模型地址改正

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

View File

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

View File

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