Skip to content

fix: 修复生成echart图空指针异常,增加配置 - #337

Merged
VLSMB merged 1 commit into
spring-ai-alibaba:mainfrom
davidathena:echarts
Jan 14, 2026
Merged

VLSMB merged 1 commit into
spring-ai-alibaba:mainfrom
davidathena:echarts

Conversation

@davidathena

Copy link
Copy Markdown
Contributor

Describe what this PR does / why we need it

1、修复判别图表类型的时候部分模型出现的空指针问题
2、增加2项配置:是否生成图形、生成图形的耗时时间

Does this pull request fix one issue?

Describe how you did it

1、空指针问题改用:llmService.toStringFlux将流信息转换为字符串
2、增加的2项配置如下

配置项 说明 默认值
spring.ai.alibaba.data-agent.enable-sql-result-chart 是否启用SQL执行结果图表判断 true
spring.ai.alibaba.data-agent.enrich-sql-result-timeout 执行SQL结果图表化超时时间,单位毫秒 3000

Describe how to verify it

Special notes for reviews

@VLSMB
VLSMB merged commit eb6c946 into spring-ai-alibaba:main Jan 14, 2026
8 checks passed
pangpang20 pushed a commit to pangpang20/DataAgent that referenced this pull request Jan 28, 2026
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.

2 participants