mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-12-26 14:40:05 +01:00
openai: don't pass apiKey when it is empty
This commit is contained in:
parent
25791e3f46
commit
9b7764575b
@ -183,7 +183,7 @@ impl Embedder {
|
||||
|
||||
let rest_embedder = RestEmbedder::new(
|
||||
RestEmbedderOptions {
|
||||
api_key: Some(api_key.clone()),
|
||||
api_key: (!api_key.is_empty()).then(|| api_key.clone()),
|
||||
distribution: None,
|
||||
dimensions: Some(options.dimensions()),
|
||||
url,
|
||||
|
Loading…
x
Reference in New Issue
Block a user