feat: show the user the entirety of the usage response

This commit is contained in:
Jun Siang Cheah committed 2024-10-02 23:14:08 +01:00
1 parent d353ea449a
commit a8ec73d01e
3 files changed
+46 -25

No files matched your search

+2
View File
@@ -18,6 +18,8 @@ type ResponseUsage = {
completion_tokens: number;
/** Sum of the above two fields */
total_tokens: number;
/** Any other fields that aren't part of the base OpenAI spec */
[other: string]: unknown;
};
// createOpenAITextStream takes a responseBody with a SSE response,