use gpt-4-turbo as default (#515)

This commit is contained in:
an-lee
2024-04-12 10:25:35 +08:00
committed by GitHub
parent 1c3b148e9a
commit 7cc8e0bf7b
9 changed files with 26 additions and 20 deletions

View File

@@ -17,10 +17,10 @@ export const ipaCommand = async (
}
): Promise<{ words?: { word?: string; ipa?: string }[] }> => {
const { key, temperature = 0, baseUrl } = options;
let { modelName = "gpt-4-turbo-preview" } = options;
let { modelName = "gpt-4-turbo" } = options;
if (RESPONSE_JSON_FORMAT_MODELS.indexOf(modelName) === -1) {
modelName = "gpt-4-turbo-preview";
modelName = "gpt-4-turbo";
}
const responseSchema = z.object({