Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Creating PC Assistants in EU region not working in Python client #427

Open
2 tasks done
FPOscar opened this issue Jan 2, 2025 · 0 comments
Open
2 tasks done
Labels
bug Something isn't working status:needs-triage An issue that needs to be triaged by the Pinecone team

Comments

@FPOscar
Copy link

FPOscar commented Jan 2, 2025

Is this a new bug?

  • I believe this is a new bug
  • I have searched the existing Github issues and Community Forum, and I could not find an existing post for this 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

  • OS Version: Windows 10 Enterprise 10.0.19045
  • Python version: 3.12.5
  • Python SDK version: 5.4.2
  • Pinecone Assistant Plugin Version: 0.4.3
@FPOscar FPOscar added the bug Something isn't working label Jan 2, 2025
@github-actions github-actions bot added the status:needs-triage An issue that needs to be triaged by the Pinecone team label Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working status:needs-triage An issue that needs to be triaged by the Pinecone team
Projects
None yet
Development

No branches or pull requests

1 participant