fixes chatgpt-latest missing from models endpoint

This commit is contained in:
nai-degen 2024-09-15 06:02:35 -05:00
parent f1cfa644c5
commit 7a4a16dd2f
1 changed files with 1 additions and 1 deletions

View File

@ -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");