feat: show the user the entirety of the usage response
This commit is contained in:
1 parent
d353ea449a
commit
a8ec73d01e
3 files changed
+46
-25
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user