Skip to content

Commit 0548b18

Browse files
committed
fix tokens per second calculation
1 parent ffe6b73 commit 0548b18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/util/azure/ResponsesAPI.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ export class ResponsesClient {
246246
return {
247247
tokenCount,
248248
timeToFirstToken,
249-
tokensPerSecond: timeToFirstToken ? tokenCount / tokenStreamingDuration : undefined,
249+
tokensPerSecond: timeToFirstToken ? (tokenCount / tokenStreamingDuration) * 1000 : undefined,
250250
response: contents.join(''),
251251
}
252252
}

0 commit comments

Comments
 (0)