Langfuse JS/TS SDKs
GitHub
Docs
Preparing search index...
@langfuse/core
OpenAiCompletionUsageSchema
Interface OpenAiCompletionUsageSchema
OpenAI Usage schema from (Chat-)Completion APIs
interface
OpenAiCompletionUsageSchema
{
completion_tokens
:
number
;
completion_tokens_details
?:
Record
<
string
,
undefined
|
number
>
;
prompt_tokens
:
number
;
prompt_tokens_details
?:
Record
<
string
,
undefined
|
number
>
;
total_tokens
:
number
;
}
Index
Properties
completion_
tokens
completion_
tokens_
details?
prompt_
tokens
prompt_
tokens_
details?
total_
tokens
Properties
completion_
tokens
completion_tokens
:
number
Optional
completion_
tokens_
details
completion_tokens_details
?:
Record
<
string
,
undefined
|
number
>
prompt_
tokens
prompt_tokens
:
number
Optional
prompt_
tokens_
details
prompt_tokens_details
?:
Record
<
string
,
undefined
|
number
>
total_
tokens
total_tokens
:
number
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
completion_
tokens
completion_
tokens_
details
prompt_
tokens
prompt_
tokens_
details
total_
tokens
GitHub
Docs
Langfuse JS/TS SDKs
Loading...
OpenAI Usage schema from (Chat-)Completion APIs