Skip to content

Error listing thread messages #2273

@JonasRueegsegger

Description

@JonasRueegsegger

Confirm this is an issue with the Python library and not an underlying OpenAI API

  • This is an issue with the Python library

Describe the bug

Latest release of pydantic library https://pypi.org/project/pydantic/2.11.1/ makes listing thread messages raising an error.

To Reproduce

See code snippet below

Code snippets

from openai import OpenAI


key = ''
openai_client = OpenAI(api_key='')
thread_id = openai_client.beta.threads.create().id
print(openai_client.beta.threads.messages.list(thread_id=thread_id))

OS

unix

Python version

Python v3.9

Library version

openai v1.52.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions