Skip to content

调用工具流式输出会报空指针异常: Cannot invoke "java.time.Duration.plus(java.time.Duration)" because "evalDuration" is null #3549

@hhf296095496

Description

@hhf296095496

Bug description
我本地启动了ollama,运行了qwen3:1.7b模型,打算在调用工具的时候流式输出内容,调用工具的时候,会报空指针异常的错误
Environment
spring ai:1.0.0 ollama: 0.9.0
Steps to reproduce

请求代码如下:

Image

截图如下:

Image

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