forked from open-webui/open-webui
fix: openai isseu
This commit is contained in:
parent
1371e66ed9
commit
15f4153fda
2 changed files with 2 additions and 2 deletions
|
@ -588,7 +588,7 @@
|
||||||
max_tokens: $settings?.options?.num_predict ?? undefined,
|
max_tokens: $settings?.options?.num_predict ?? undefined,
|
||||||
docs: docs.length > 0 ? docs : undefined
|
docs: docs.length > 0 ? docs : undefined
|
||||||
},
|
},
|
||||||
model.source.toLowerCase() === 'litellm'
|
model?.source?.toLowerCase() === 'litellm'
|
||||||
? `${LITELLM_API_BASE_URL}/v1`
|
? `${LITELLM_API_BASE_URL}/v1`
|
||||||
: `${OPENAI_API_BASE_URL}`
|
: `${OPENAI_API_BASE_URL}`
|
||||||
);
|
);
|
||||||
|
|
|
@ -602,7 +602,7 @@
|
||||||
max_tokens: $settings?.options?.num_predict ?? undefined,
|
max_tokens: $settings?.options?.num_predict ?? undefined,
|
||||||
docs: docs.length > 0 ? docs : undefined
|
docs: docs.length > 0 ? docs : undefined
|
||||||
},
|
},
|
||||||
model.source.toLowerCase() === 'litellm'
|
model?.source?.toLowerCase() === 'litellm'
|
||||||
? `${LITELLM_API_BASE_URL}/v1`
|
? `${LITELLM_API_BASE_URL}/v1`
|
||||||
: `${OPENAI_API_BASE_URL}`
|
: `${OPENAI_API_BASE_URL}`
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue