Skip to content

ChatCompletionNamedToolChoiceParam does not match the object specified in the documentation #2772

@raphael-foliveira

Description

@raphael-foliveira

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

The object can be found here.

While the official docs states:

tool_choice: {"type": "function", "name": "get_weather"}

To Reproduce

Check the docs in the link provided

Code snippets

OS

any

Python version

any

Library version

2.9.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