Skip to content

Commit dfc7562

Browse files
Add Google PaLM support
1 parent d8fb75c commit dfc7562

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-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_openai, :cohere, :huggingface
34-
model_service_api_key: 'xxxxxxx' # Either OpenAI, Azure OpenAI, 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, :google_palm
34+
model_service_api_key: 'xxxxxxx' # Either OpenAI, Azure OpenAI, Cohere, Hugging Face or Google PaLM api key
3535
)
3636
```
3737

lib/weaviate/client.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ class Client
1414
openai: "X-OpenAI-Api-Key",
1515
azure_openai: "X-Azure-Api-Key",
1616
cohere: "X-Cohere-Api-Key",
17-
huggingface: "X-HuggingFace-Api-Key"
17+
huggingface: "X-HuggingFace-Api-Key",
18+
google_palm: "X-Palm-Api-Key"
1819
}
1920

2021
def initialize(

0 commit comments

Comments
 (0)