make Anthropic API key explicit

Co-authored-by: Abdon Pijpelink <abdon.pijpelink@qdrant.com>
This commit is contained in:
Dylan Couzon
2026-04-22 09:17:40 -04:00
committed by GitHub
co-authored by Abdon Pijpelink
parent 1a9821cc95
commit 4d99153c90
@@ -33,7 +33,9 @@ import os
import anthropic 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]: def generate_queries_for_doc(doc_text: str, n: int = 3) -> list[str]:
response = client.messages.create( response = client.messages.create(