mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-06-25 07:58:30 +02:00
Fix Gemini base_url when used with OpenAI clients
This commit is contained in:
parent
fc6cc80705
commit
c17031d3de
@ -154,7 +154,7 @@ impl ChatCompletionSource {
|
|||||||
match self {
|
match self {
|
||||||
OpenAi => Some("https://api.openai.com/v1/"),
|
OpenAi => Some("https://api.openai.com/v1/"),
|
||||||
Mistral => Some("https://api.mistral.ai/v1/"),
|
Mistral => Some("https://api.mistral.ai/v1/"),
|
||||||
Gemini => Some("https://generativelanguage.googleapis.com/v1beta/openai/"),
|
Gemini => Some("https://generativelanguage.googleapis.com/v1beta/openai"),
|
||||||
AzureOpenAi | VLlm => None,
|
AzureOpenAi | VLlm => None,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user