mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-10-09 03:18:04 +00:00
gpt-4o is already a default model, so no error-checking required
This commit is contained in:
parent
76c48ccb60
commit
be7165529c
1 changed files with 1 additions and 9 deletions
|
|
@ -21,8 +21,6 @@ export async function initQuery(
|
|||
index: c.env.VECTORIZE_INDEX,
|
||||
});
|
||||
|
||||
const DEFAULT_MODEL = "gpt-4o";
|
||||
|
||||
let selectedModel:
|
||||
| ReturnType<ReturnType<typeof createOpenAI>>
|
||||
| ReturnType<ReturnType<typeof createGoogleGenerativeAI>>
|
||||
|
|
@ -51,13 +49,7 @@ export async function initQuery(
|
|||
selectedModel = openai.chat("gpt-4o");
|
||||
break;
|
||||
}
|
||||
|
||||
if (!selectedModel) {
|
||||
throw new Error(
|
||||
`Model ${model} not found and default model ${DEFAULT_MODEL} is also not available.`,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
return { store, model: selectedModel };
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue