Merge pull request #5376 from MrrDrr/add_chatgpt_4o_latest

add chatgpt-4o-latest
This commit is contained in:
mayfwl
2024-09-08 10:15:41 +08:00
committed by GitHub
6 changed files with 18 additions and 7 deletions

View File

@@ -407,7 +407,9 @@ export class ChatGPTApi implements LLMApi {
});
const resJson = (await res.json()) as OpenAIListModelResponse;
const chatModels = resJson.data?.filter((m) => m.id.startsWith("gpt-"));
const chatModels = resJson.data?.filter(
(m) => m.id.startsWith("gpt-") || m.id.startsWith("chatgpt-"),
);
console.log("[Models]", chatModels);
if (!chatModels) {