Skip to content

Conversation

@ilayaperumalg
Copy link
Member

  • Fix OpenAI ChatModel's call() operation

    • When toolcalling is used, calculate cumulative usage from the preceding ChatResponses
  • Fix OpenAI ChatModel's stream() operation

    • Make sure that cumulative usage is calculated from the ChatResponse which has a valid usage
      • Use overlapping buffer to check and store the usage from the response that holds the usage.
  • Add tests for both call() and stream()

 - Fix OpenAI ChatModel's call() operation

   - When toolcalling is used, calculate cumulative usage from the preceding ChatResponses

 - Fix OpenAI ChatModel's stream() operation

   - Make sure that cumulative usage is calculated from the ChatResponse which has a valid usage
     - Use overlapping buffer to check and store the usage from the response that holds the usage.

 - Add tests for both call() and stream()
@ilayaperumalg
Copy link
Member Author

This was merged as 37cf20d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants