Skip to content

v0.1.8 Raising pydantic errors #2637

@vg249

Description

@vg249

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

New stable version v0.1.8 is raising Fields must not use names with leading underscores; e.g., use 'pydantic_extra__' instead of '__pydantic_extra__'.

To Reproduce

import openai
openai_client = openai.OpenAI()
openai_response = openai_client.embeddings.create(input=["test"], model="text-embedding-ada-002")

Code snippets

OS

Ubuntu

Python version

3.10.12

Library version

openai 1.108.0

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