mirror of
https://github.com/ErlichLiu/DeepClaude.git
synced 2026-04-25 05:05:57 +03:00
[GH-ISSUE #44] 请教关于剔除"role = system "的问题 #29
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/DeepClaude#29
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @vank3f3 on GitHub (Feb 24, 2025).
Original GitHub issue: https://github.com/ErlichLiu/DeepClaude/issues/44
请教关于在重新打包 message 的时候,剔除"role = system " 的原因是什么?
@GowayLee commented on GitHub (Feb 24, 2025):
According to Anthropic api doc, there is no role named
system. So, we just remove the message withrole = system.As for improvement, we can add logic to convert
system messagetosystemparameter in the request body, which is supported by Anthropic.@vank3f3 commented on GitHub (Feb 24, 2025):
非常感谢,明白了!"role"没有"system",是需要主动将system转为”system“。
@ErlichLiu commented on GitHub (Feb 24, 2025):
@vank3f3 感谢反馈,说的确实非常有道理。当时图省事就移除了,确实是应该改为 system 加进去的。我们下个版本将更新进去。
@GowayLee commented on GitHub (Feb 25, 2025):
已添加逻辑实现兼容