Skip to content

Commit 2b23ec9

Browse files
committed
refactor: update default mode because of different performance in data analysis
1 parent 054c8d1 commit 2b23ec9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/server/model/openai.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import type {
1313
} from 'openai/resources/chat/completions.mjs';
1414
import { createAuditLog } from './auditLog.js';
1515

16-
export const modelName = env.openai.modelName ?? 'gpt-4o-mini';
16+
export const modelName = env.openai.modelName ?? 'gpt-4o';
1717

1818
let openaiClient: OpenAI;
1919

src/server/utils/env.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export const env = {
6464
enable: Boolean(process.env.OPENAI_API_KEY),
6565
baseUrl: process.env.OPENAI_BASE_URL,
6666
apiKey: process.env.OPENAI_API_KEY,
67-
modelName: process.env.OPENAI_MODEL_NAME ?? 'gpt-4o-mini',
67+
modelName: process.env.OPENAI_MODEL_NAME ?? 'gpt-4o',
6868
},
6969
allowRegister: checkEnvTrusty(process.env.ALLOW_REGISTER),
7070
allowOpenapi: checkEnvTrusty(process.env.ALLOW_OPENAPI ?? 'true'),

0 commit comments

Comments
 (0)