Skip to content

Commit

Permalink
Remove server side check of models for now
Browse files Browse the repository at this point in the history
  • Loading branch information
wonderwhy-er committed Nov 9, 2024
1 parent a1346cb commit e328649
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions app/lib/.server/llm/stream-text.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ function extractPropertiesFromMessage(message: Message): { model: string; provid
}

export function streamText(
messages: Messages,
env: Env,
messages: Messages,
env: Env,
options?: StreamingOptions,
apiKeys?: Record<string, string>
) {
Expand All @@ -55,9 +55,10 @@ export function streamText(
if (message.role === 'user') {
const { model, provider, content } = extractPropertiesFromMessage(message);

if (MODEL_LIST.find((m) => m.name === model)) {
currentModel = model;
}
// TODO removed for now teh check as we now use dynamic models in client, we need to have dynamic here too
//if (MODEL_LIST.find((m) => m.name === model)) {
currentModel = model;
//}

currentProvider = provider;

Expand Down

0 comments on commit e328649

Please sign in to comment.