mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-26 03:55:07 +08: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(
|
let rest_embedder = RestEmbedder::new(
|
||||||
RestEmbedderOptions {
|
RestEmbedderOptions {
|
||||||
api_key: Some(api_key.clone()),
|
api_key: (!api_key.is_empty()).then(|| api_key.clone()),
|
||||||
distribution: None,
|
distribution: None,
|
||||||
dimensions: Some(options.dimensions()),
|
dimensions: Some(options.dimensions()),
|
||||||
url,
|
url,
|
||||||
|
Loading…
Reference in New Issue
Block a user