kopia lustrzana https://github.com/transitive-bullshit/chatgpt-api
#477 Mark tokens as estimated
rodzic
dd6b457932
commit
7cd6e06bdd
|
@ -294,7 +294,8 @@ export class ChatGPTAPI {
|
|||
message.detail.usage = {
|
||||
prompt_tokens: promptTokens,
|
||||
completion_tokens: completionTokens,
|
||||
total_tokens: promptTokens + completionTokens
|
||||
total_tokens: promptTokens + completionTokens,
|
||||
estimated: true
|
||||
}
|
||||
}
|
||||
return this._upsertMessage(message).then(() => message)
|
||||
|
|
Ładowanie…
Reference in New Issue