mirror of
https://github.com/open-webui/open-webui
synced 2024-11-17 22:12:51 +00:00
fix: openai isseu
This commit is contained in:
parent
1371e66ed9
commit
15f4153fda
@ -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 New Issue
Block a user