Skip to content

spring ai azure openai stream response will be miss model filed #4715

@hjm2015

Description

@hjm2015

Bug description
When i use spring ai azure openai , use chat client invoke stream() , add SimpleLoggerAdvisor found the log response miss model;

Image

Environment
spring ai 1.0.0 version

Steps to reproduce
use auzre chat model invoke the stream() must be reproduce.

Expected behavior
Will have the model

Issue
I debug found the org.springframework.ai.azure.openai.MergeUtils#mergeChatCompletions , ignore the model set

Image

Metadata

Metadata

Assignees

Labels

azurebugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions