Skip to content

Commit 1d7871c

Browse files
author
Moeki Kawakami
committed
Improve key name for Azure OpenAI API version
1 parent b598219 commit 1d7871c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ require 'weaviate'
3030
client = Weaviate::Client.new(
3131
url: 'https://some-endpoint.weaviate.network', # Replace with your endpoint
3232
api_key: '', # Weaviate API key
33-
model_service: :openai, # Service that will be used to generate vectors. Possible values: :openai, :azure, :cohere, :huggingface
34-
model_service_api_key: 'xxxxxxx' # Either OpenAI, Azure, Cohere or Hugging Face API key
33+
model_service: :openai, # Service that will be used to generate vectors. Possible values: :openai, :azure_openai, :cohere, :huggingface
34+
model_service_api_key: 'xxxxxxx' # Either OpenAI, Azure OpenAI, Cohere or Hugging Face API key
3535
)
3636
```
3737

lib/weaviate/client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class Client
1212

1313
API_KEY_HEADERS = {
1414
openai: "X-OpenAI-Api-Key",
15-
azure: "X-Azure-Api-Key",
15+
azure_openai: "X-Azure-Api-Key",
1616
cohere: "X-Cohere-Api-Key",
1717
huggingface: "X-HuggingFace-Api-Key"
1818
}

0 commit comments

Comments
 (0)