Skip to content

OpenAiChatModel when toolDefinitions is not empty, extraBody become empty #5056

@chaodongyue

Description

@chaodongyue

When toolDefinitions is not empty, the extraBody of the ChatCompletionRequest will become empty.

Bug description
bug in class OpenAiChatModel line 654

Image Image

Environment
spring ai 1.1.1

Steps to reproduce
Pass the parameters extraBody and toolCallbacks to OpenAiChatOptions simultaneously.

Expected behavior
request has extraBody data

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions