Packages

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

Current section

Files

Jump to
glopenai include glopenai@chat_CreateChatCompletionResponse.hrl
Raw

include/glopenai@chat_CreateChatCompletionResponse.hrl

-record(create_chat_completion_response, {
id :: binary(),
object :: binary(),
created :: integer(),
model :: binary(),
choices :: list(glopenai@chat:chat_choice()),
usage :: gleam@option:option(glopenai@shared:completion_usage()),
service_tier :: gleam@option:option(glopenai@chat:service_tier()),
system_fingerprint :: gleam@option:option(binary())
}).