Skip to content

Tool calls in to_litellm_messages does not comply with OpenAI API #169

@JunyiXu-nv

Description

@JunyiXu-nv

In to_litellm_messages, an extra name field is added to the tool_calls field of request, which does not comply to OpenAI's API reference. This API violation will cause pydantic validation failure in apps that directly use openai sdk.

"name": tc.name,

Wondering why it's so designed? Or it's just a bug.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions