ag2
ag2 copied to clipboard
[Issue]: Revisit AG2 ChatCompletionMessage, ChatCompletionMessageFunctionToolCall etc to see why we can't use OAI native ones
Describe the issue
AG2 internal ChatCompletionMessage adds some limitation when OAI model evolve. I understand we may need some internal objects to make AG2 compatible to other models, i.e. Gemini. But we have two conversions
- OAI ChatCompletionMessage -> AG2 ChatCompletionMessage
- Gemini ChatCompletionMessage -> AG2 ChatCompletionMessage
If we use a simple wrapper on top of OAI ChatCompletionMessage, we may only need the 2nd conversion and will reduce our work on maintain convertion like OAI ChatCompletionMessage -> AG2 ChatCompletionMessage
Steps to reproduce
No response
Screenshots and logs
No response
Additional Information
No response
@priyansh4320 Could you verify if my claim is valid? If yes, could you list the items we need to work on to make it work?
@randombet will take a look.