From 7a4a16dd2fae86a764319f6e87ca0d230c87573b Mon Sep 17 00:00:00 2001 From: nai-degen Date: Sun, 15 Sep 2024 06:02:35 -0500 Subject: [PATCH] fixes chatgpt-latest missing from models endpoint --- src/proxy/openai.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/proxy/openai.ts b/src/proxy/openai.ts index 8e5d630..b843651 100644 --- a/src/proxy/openai.ts +++ b/src/proxy/openai.ts @@ -46,7 +46,7 @@ export function generateModelList(service: "openai" | "azure") { .flatMap((k) => k.modelIds) .filter((id) => { const allowed = modelFamilies.has(getOpenAIModelFamily(id)); - const known = ["gpt", "o1", "dall-e", "text-embedding-ada-002"].some( + const known = ["gpt", "o1", "dall-e", "chatgpt", "text-embedding"].some( (prefix) => id.startsWith(prefix) ); const isFinetune = id.includes("ft");