修改gpt,url地址

This commit is contained in:
2026-04-13 10:18:44 +08:00
parent 2518d60951
commit eab3f6c28a
11 changed files with 11 additions and 4 deletions

View File

@@ -10,7 +10,7 @@ JWT_SECRET=your_jwt_secret_here_change_in_production
# FastGPT API 配置 # FastGPT API 配置
FASTGPT_API_KEY=your_fastgpt_api_key_here FASTGPT_API_KEY=your_fastgpt_api_key_here
FASTGPT_API_URL=https://api.fastgpt.in/api/v1/chat/completions FASTGPT_API_URL=https://cloud.fastgpt.cn/api/v1/chat/completions
FASTGPT_MODEL=gpt-4 FASTGPT_MODEL=gpt-4
# 服务器配置 # 服务器配置

View File

@@ -16,7 +16,7 @@ JWT_SECRET=generate_a_strong_random_string_at_least_32_chars_long
# FastGPT API 配置 # FastGPT API 配置
FASTGPT_API_KEY=your_fastgpt_api_key_here FASTGPT_API_KEY=your_fastgpt_api_key_here
FASTGPT_API_URL=https://api.fastgpt.in/api/v1/chat/completions FASTGPT_API_URL=https://cloud.fastgpt.cn/api/v1/chat/completions
FASTGPT_MODEL=gpt-4 FASTGPT_MODEL=gpt-4
# 代理配置(如果需要通过代理访问 FastGPT # 代理配置(如果需要通过代理访问 FastGPT

View File

@@ -140,7 +140,7 @@ export function parseAIResponse(rawResponse: string): AIScoreData {
// ─── FastGPT API Call ───────────────────────────────────────────────────────── // ─── FastGPT API Call ─────────────────────────────────────────────────────────
const FASTGPT_API_URL = process.env.FASTGPT_API_URL || 'https://api.fastgpt.in/api/v1/chat/completions'; const FASTGPT_API_URL = process.env.FASTGPT_API_URL || 'https://cloud.fastgpt.cn/api/v1/chat/completions';
const FASTGPT_API_KEY = process.env.FASTGPT_API_KEY || ''; const FASTGPT_API_KEY = process.env.FASTGPT_API_KEY || '';
const AI_TIMEOUT_MS = 60_000; // 60秒超时 const AI_TIMEOUT_MS = 60_000; // 60秒超时

View File

@@ -0,0 +1 @@
/c/Users/99095/Desktop/优一科技/performance-evaluation-system/backend

View File

@@ -0,0 +1 @@
/c/Users/99095/Desktop/优一科技/performance-evaluation-system/backend

View File

@@ -47,7 +47,7 @@ services:
DB_NAME: employee_performance DB_NAME: employee_performance
JWT_SECRET: your_jwt_secret_here_change_in_production JWT_SECRET: your_jwt_secret_here_change_in_production
FASTGPT_API_KEY: ${FASTGPT_API_KEY:-your_fastgpt_api_key_here} FASTGPT_API_KEY: ${FASTGPT_API_KEY:-your_fastgpt_api_key_here}
FASTGPT_API_URL: https://api.fastgpt.in/api/v1/chat/completions FASTGPT_API_URL: https://cloud.fastgpt.cn/api/v1/chat/completions
FASTGPT_MODEL: gpt-4 FASTGPT_MODEL: gpt-4
PORT: 3001 PORT: 3001
NODE_ENV: development NODE_ENV: development

1
tmpclaude-25f4-cwd Normal file
View File

@@ -0,0 +1 @@
/c/Users/99095/Desktop/优一科技/performance-evaluation-system

1
tmpclaude-35f6-cwd Normal file
View File

@@ -0,0 +1 @@
/c/Users/99095/Desktop/优一科技/performance-evaluation-system

1
tmpclaude-8fe5-cwd Normal file
View File

@@ -0,0 +1 @@
/c/Users/99095/Desktop/优一科技/performance-evaluation-system

1
tmpclaude-d140-cwd Normal file
View File

@@ -0,0 +1 @@
/c/Users/99095/Desktop/优一科技/performance-evaluation-system

1
tmpclaude-d22b-cwd Normal file
View File

@@ -0,0 +1 @@
/c/Users/99095/Desktop/优一科技/performance-evaluation-system