diff --git a/backend/.env.example b/backend/.env.example index 4929316..c74ac26 100644 --- a/backend/.env.example +++ b/backend/.env.example @@ -10,7 +10,7 @@ JWT_SECRET=your_jwt_secret_here_change_in_production # FastGPT API 配置 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 # 服务器配置 diff --git a/backend/.env.production.example b/backend/.env.production.example index cd3873e..e7d3e3d 100644 --- a/backend/.env.production.example +++ b/backend/.env.production.example @@ -16,7 +16,7 @@ JWT_SECRET=generate_a_strong_random_string_at_least_32_chars_long # FastGPT API 配置 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) diff --git a/backend/src/services/AIEvaluationService.ts b/backend/src/services/AIEvaluationService.ts index e3c1acb..1446ff8 100644 --- a/backend/src/services/AIEvaluationService.ts +++ b/backend/src/services/AIEvaluationService.ts @@ -140,7 +140,7 @@ export function parseAIResponse(rawResponse: string): AIScoreData { // ─── 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 AI_TIMEOUT_MS = 60_000; // 60秒超时 diff --git a/backend/tmpclaude-3341-cwd b/backend/tmpclaude-3341-cwd new file mode 100644 index 0000000..c189ea7 --- /dev/null +++ b/backend/tmpclaude-3341-cwd @@ -0,0 +1 @@ +/c/Users/99095/Desktop/优一科技/performance-evaluation-system/backend diff --git a/backend/tmpclaude-e63d-cwd b/backend/tmpclaude-e63d-cwd new file mode 100644 index 0000000..c189ea7 --- /dev/null +++ b/backend/tmpclaude-e63d-cwd @@ -0,0 +1 @@ +/c/Users/99095/Desktop/优一科技/performance-evaluation-system/backend diff --git a/docker-compose.yml b/docker-compose.yml index b008f7b..068e289 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -47,7 +47,7 @@ services: DB_NAME: employee_performance JWT_SECRET: your_jwt_secret_here_change_in_production 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 PORT: 3001 NODE_ENV: development diff --git a/tmpclaude-25f4-cwd b/tmpclaude-25f4-cwd new file mode 100644 index 0000000..0a8904c --- /dev/null +++ b/tmpclaude-25f4-cwd @@ -0,0 +1 @@ +/c/Users/99095/Desktop/优一科技/performance-evaluation-system diff --git a/tmpclaude-35f6-cwd b/tmpclaude-35f6-cwd new file mode 100644 index 0000000..0a8904c --- /dev/null +++ b/tmpclaude-35f6-cwd @@ -0,0 +1 @@ +/c/Users/99095/Desktop/优一科技/performance-evaluation-system diff --git a/tmpclaude-8fe5-cwd b/tmpclaude-8fe5-cwd new file mode 100644 index 0000000..0a8904c --- /dev/null +++ b/tmpclaude-8fe5-cwd @@ -0,0 +1 @@ +/c/Users/99095/Desktop/优一科技/performance-evaluation-system diff --git a/tmpclaude-d140-cwd b/tmpclaude-d140-cwd new file mode 100644 index 0000000..0a8904c --- /dev/null +++ b/tmpclaude-d140-cwd @@ -0,0 +1 @@ +/c/Users/99095/Desktop/优一科技/performance-evaluation-system diff --git a/tmpclaude-d22b-cwd b/tmpclaude-d22b-cwd new file mode 100644 index 0000000..0a8904c --- /dev/null +++ b/tmpclaude-d22b-cwd @@ -0,0 +1 @@ +/c/Users/99095/Desktop/优一科技/performance-evaluation-system