mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-06-19 10:58:01 +00:00
Make sure Mistral base url is well defined
This commit is contained in:
parent
9275ce1503
commit
596617dd31
@ -24,7 +24,8 @@ impl Config {
|
|||||||
if let Some(api_key) = chat_settings.api_key.as_ref() {
|
if let Some(api_key) = chat_settings.api_key.as_ref() {
|
||||||
config = config.with_api_key(api_key);
|
config = config.with_api_key(api_key);
|
||||||
}
|
}
|
||||||
if let Some(base_url) = chat_settings.base_url.as_ref() {
|
let base_url = chat_settings.base_url.as_deref();
|
||||||
|
if let Some(base_url) = chat_settings.source.base_url().or(base_url) {
|
||||||
config = config.with_api_base(base_url);
|
config = config.with_api_base(base_url);
|
||||||
}
|
}
|
||||||
Self::OpenAiCompatible(config)
|
Self::OpenAiCompatible(config)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user