mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
openai: don't pass apiKey when it is empty
This commit is contained in:
parent
25791e3f46
commit
9b7764575b
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue