Skip to content

fix: use user message for python analyze prompt#515

Open
JingHou1215 wants to merge 1 commit intospring-ai-alibaba:mainfrom
JingHou1215:fix-461-python-analyze-user-message
Open

fix: use user message for python analyze prompt#515
JingHou1215 wants to merge 1 commit intospring-ai-alibaba:mainfrom
JingHou1215:fix-461-python-analyze-user-message

Conversation

@JingHou1215
Copy link
Copy Markdown

Describe what this PR does / why we need it

修复PythonAnalyzeNode只发送system message时,部分OpenAI兼容模型报at least one message is required的问题。

Does this pull request fix one issue?

Fixes #461

Describe how you did it

将llmService.callSystem(systemPrompt)改为llmService.callUser(systemPrompt),并同步更新对应单测mock。

Describe how to verify it

执行命令:./mvnw.cmd -pl data-agent-management test -Dtest=PythonAnalyzeNodeTest

结果:Tests run: 7, Failures: 0, Errors: 0, Skipped: 0,BUILD SUCCESS

Special notes for reviews

NONE

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.

[BUG]PythonAnalyzeNode 调用 LLM 分析时报错 "at least one message is required"

1 participant