[Feature Request]: Improve Concatenated Send Messages Logic
Problem Description
The current concatenated send messages logic has an issue. It only works consistently for OpenAI, but when using another provider such as Anthropic (Claude), it does not work consistently.
Solution Description
If possible, it would be better to improve the logic and make it more structured. The suggested approach is:
- If there is no
systemrole, make theuserrole the first one. - If there is a
systemrole, make theuserrole the second one.
This improvement would ensure consistent behavior across different providers and a more structured approach to handling concatenated messages.
Alternatives Considered
No response
Additional Context
No response
[!NOTE] This improvement is a better approach. Basically, we don't expect to heavily utilize the
OpenAIservice provider when using models that are not available onOpenAI.
Note
This improvement is a better approach. Basically, we don't expect to heavily utilize the
OpenAIservice provider when using models that are not available onOpenAI. 这个问题,我已经解决,出现这个原因是,请求的时候user的格式不一致导致的,专门写了一个转换函数可以在openai和Anthropic (Claude)之间互相转换格式,这样就不会出现错误了,这个错误,只出现在视觉这块