mirror of
https://github.com/qdrant/landing_page.git
synced 2026-10-01 17:08:30 +02:00
make Anthropic API key explicit
Co-authored-by: Abdon Pijpelink <abdon.pijpelink@qdrant.com>
This commit is contained in:
co-authored by
Abdon Pijpelink
parent
1a9821cc95
commit
4d99153c90
+3
-1
@@ -33,7 +33,9 @@ import os
|
||||
|
||||
import anthropic
|
||||
|
||||
client = anthropic.Anthropic()
|
||||
client = Anthropic(
|
||||
api_key=os.environ.get("ANTHROPIC_API_KEY"),
|
||||
)
|
||||
|
||||
def generate_queries_for_doc(doc_text: str, n: int = 3) -> list[str]:
|
||||
response = client.messages.create(
|
||||
|
||||
Reference in New Issue
Block a user