修改gpt,url地址
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
# 服务器配置
|
# 服务器配置
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
@@ -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秒超时
|
||||||
|
|
||||||
|
|||||||
1
backend/tmpclaude-3341-cwd
Normal file
1
backend/tmpclaude-3341-cwd
Normal file
@@ -0,0 +1 @@
|
|||||||
|
/c/Users/99095/Desktop/优一科技/performance-evaluation-system/backend
|
||||||
1
backend/tmpclaude-e63d-cwd
Normal file
1
backend/tmpclaude-e63d-cwd
Normal file
@@ -0,0 +1 @@
|
|||||||
|
/c/Users/99095/Desktop/优一科技/performance-evaluation-system/backend
|
||||||
@@ -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
1
tmpclaude-25f4-cwd
Normal file
@@ -0,0 +1 @@
|
|||||||
|
/c/Users/99095/Desktop/优一科技/performance-evaluation-system
|
||||||
1
tmpclaude-35f6-cwd
Normal file
1
tmpclaude-35f6-cwd
Normal file
@@ -0,0 +1 @@
|
|||||||
|
/c/Users/99095/Desktop/优一科技/performance-evaluation-system
|
||||||
1
tmpclaude-8fe5-cwd
Normal file
1
tmpclaude-8fe5-cwd
Normal file
@@ -0,0 +1 @@
|
|||||||
|
/c/Users/99095/Desktop/优一科技/performance-evaluation-system
|
||||||
1
tmpclaude-d140-cwd
Normal file
1
tmpclaude-d140-cwd
Normal file
@@ -0,0 +1 @@
|
|||||||
|
/c/Users/99095/Desktop/优一科技/performance-evaluation-system
|
||||||
1
tmpclaude-d22b-cwd
Normal file
1
tmpclaude-d22b-cwd
Normal file
@@ -0,0 +1 @@
|
|||||||
|
/c/Users/99095/Desktop/优一科技/performance-evaluation-system
|
||||||
Reference in New Issue
Block a user