Packages

Sans-IO OpenAI API client for Gleam, ported from async-openai

Current section

Files

Jump to
glopenai include glopenai@shared_CompletionUsage.hrl
Raw

include/glopenai@shared_CompletionUsage.hrl

-record(completion_usage, {
prompt_tokens :: integer(),
completion_tokens :: integer(),
total_tokens :: integer(),
prompt_tokens_details :: gleam@option:option(glopenai@shared:prompt_tokens_details()),
completion_tokens_details :: gleam@option:option(glopenai@shared:completion_tokens_details())
}).