From eab3f6c28a16248587c96cb2bff5ef328fc9ceaf Mon Sep 17 00:00:00 2001 From: zhuyu <990951175@qq.com> Date: Mon, 13 Apr 2026 10:18:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9gpt=EF=BC=8Curl=E5=9C=B0?= =?UTF-8?q?=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/.env.example | 2 +- backend/.env.production.example | 2 +- backend/src/services/AIEvaluationService.ts | 2 +- backend/tmpclaude-3341-cwd | 1 + backend/tmpclaude-e63d-cwd | 1 + docker-compose.yml | 2 +- tmpclaude-25f4-cwd | 1 + tmpclaude-35f6-cwd | 1 + tmpclaude-8fe5-cwd | 1 + tmpclaude-d140-cwd | 1 + tmpclaude-d22b-cwd | 1 + 11 files changed, 11 insertions(+), 4 deletions(-) create mode 100644 backend/tmpclaude-3341-cwd create mode 100644 backend/tmpclaude-e63d-cwd create mode 100644 tmpclaude-25f4-cwd create mode 100644 tmpclaude-35f6-cwd create mode 100644 tmpclaude-8fe5-cwd create mode 100644 tmpclaude-d140-cwd create mode 100644 tmpclaude-d22b-cwd 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