Skip to content

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

Open
@FPOscar

Description

@FPOscar

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions