Skip to content

Conversation

@andresdiegolanda
Copy link

When both extraBody and toolCallbacks are configured in OpenAiChatOptions,
the extraBody was being lost during the merge operation that adds tool
definitions to the ChatCompletionRequest.

This fix preserves the extraBody by including it in the merge source when
adding tool definitions.

Closes gh-5056
Related: gh-5046

Previously, when both extraBody and toolCallbacks were configured,
the extraBody was overwritten during the merge operation that adds
tool definitions to the ChatCompletionRequest.

This change preserves extraBody by including it in the merge source.

Closes spring-projectsgh-5056

Signed-off-by: Andres <andresdiegolanda@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

OpenAiChatModel when toolDefinitions is not empty, extraBody become empty

1 participant