Skip to content

Conversation

@sdimka
Copy link
Contributor

@sdimka sdimka commented May 19, 2024

What

Added a feature to retrieve token usage in stream chat mode.

Why

This functionality is available in the original API and could be useful for some users.

Affected Areas

  • Added the streamOptions parameter to ChatQuery to enable feature.
  • Included Usage in ChatStreamResult to fetch data usage results.
@sonarqubecloud
Copy link

@qaz1991815
Copy link

577DF509-4FAC-49A4-8002-EC563A9346B0
A6B77BEB-9C03-4FC2-AA18-CA2FCFDDC635
It doesn't seem to be working

# Conflicts: #	Sources/OpenAI/Public/Models/ChatQuery.swift #	Sources/OpenAI/Public/Models/ChatStreamResult.swift
Copy link
Collaborator

@nezhyborets nezhyborets left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thanks!

@nezhyborets nezhyborets linked an issue Mar 31, 2025 that may be closed by this pull request
@nezhyborets nezhyborets merged commit f5b55e1 into MacPaw:main Mar 31, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants