lewis liu 刘一奇 commited on
Commit
41bb909
·
unverified ·
1 Parent(s): 85d864f

fix: fallback model name not working (#1095)

Browse files

Co-authored-by: 刘一奇 <[email protected]>

Files changed (1) hide show
  1. app/lib/.server/llm/stream-text.ts +1 -1
app/lib/.server/llm/stream-text.ts CHANGED
@@ -228,7 +228,7 @@ export async function streamText(props: {
228
 
229
  return await _streamText({
230
  model: provider.getModelInstance({
231
- model: currentModel,
232
  serverEnv,
233
  apiKeys,
234
  providerSettings,
 
228
 
229
  return await _streamText({
230
  model: provider.getModelInstance({
231
+ model: modelDetails.name,
232
  serverEnv,
233
  apiKeys,
234
  providerSettings,