feat: show the user the entirety of the usage response

This commit is contained in:
Jun Siang Cheah
2024-10-02 23:14:08 +01:00
parent d353ea449a
commit a8ec73d01e
3 changed files with 46 additions and 25 deletions
+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,