Bug description 当我调用阿里百炼平台的大模型的时候,调用工具流式输出的时候,会报空指针异常错误

Environment spring-ai : 1.0.0

Steps to reproduce 请求代码如下:

Image

工具配置如下:

Image

报错信息如下:

java.lang.NullPointerException: Cannot invoke "String.equals(Object)" because "toolName" is null at org.springframework.ai.model.tool.DefaultToolCallingManager.lambda$executeToolCall$2(DefaultToolCallingManager.java:197) ~[spring-ai-model-1.0.0.jar:1.0.0] Suppressed: reactor.core.publisher.FluxOnAssembly$OnAssemblyException: Assembly trace from producer [reactor.core.publisher.FluxDefer] : reactor.core.publisher.Flux.defer(Flux.java:810) com.alibaba.cloud.ai.dashscope.chat.DashScopeChatModel.lambda$internalStream$8(DashScopeChatModel.java:255)

请问在下一个版本里有解决吗

Comment From: fanxt0218

Have you configured the tool callback?

Comment From: hhf296095496

Have you configured the tool callback? 已经配置好了的,我改一下issue

Comment From: fanxt0218

Have you configured the tool callback? 已经配置好了的,我改一下issue

I wonder if the sync output will live up to expectations?

Comment From: hhf296095496

Have you configured the tool callback? 已经配置好了的,我改一下issue

I wonder if the sync output will live up to expectations?

同步输出是可以的,调用工具后流式输出不行

Comment From: YunKuiLu

I couldn't reproduce this case. Could you provide a minimal reproduction project? Please make sure not to expose your API key.