fix: streaming token usage
This commit is contained in:
parent
3b7e2e34d2
commit
c00df172a2
1 changed files with 1 additions and 0 deletions
|
|
@ -300,6 +300,7 @@ export class OpenAIContentGenerator implements ContentGenerator {
|
||||||
messages,
|
messages,
|
||||||
...samplingParams,
|
...samplingParams,
|
||||||
stream: true,
|
stream: true,
|
||||||
|
stream_options: { include_usage: true },
|
||||||
};
|
};
|
||||||
|
|
||||||
if (request.config?.tools) {
|
if (request.config?.tools) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue