[Bug] Creating PC Assistants in EU region not working in Python client #427
Labels
bug
Something isn't working
status:needs-triage
An issue that needs to be triaged by the Pinecone team
Is this a new bug?
Describe the bug
When specifying region="eu" in pc.assistant.create_assistant, unexpected keyword argument 'region' is returned.
It is possible to create EU assistants using curl however then when trying to upload files in python we get {"error":{"code":"NOT_FOUND","message":"Knowledge base not found"},"status":404}
Error information
TypeError: Assistant.create_assistant() got an unexpected keyword argument 'region'
Steps to reproduce the issue locally
Run:
from pinecone import Pinecone
pc = Pinecone(api_key="YOUR_API_KEY")
assistant = pc.assistant.create_assistant(
assistant_name="example-assistant",
instructions="Use American English for spelling and grammar.",
region="eu" # Region to deploy assistant. Options: "us" (default) or "eu".
timeout=30 # Maximum seconds to wait for assistant status to become "Ready" before timing out.
)
Environment
The text was updated successfully, but these errors were encountered: