LlmapiChatCompletionRequest
LlmapiChatCompletionRequest =
object
Defined in: src/client/types.gen.ts:307
Properties
any?
optionalany:unknown
Defined in: src/client/types.gen.ts:308
audio?
optionalaudio:OpenaiChatCompletionAudioParam
Defined in: src/client/types.gen.ts:309
frequency_penalty?
optionalfrequency_penalty:ParamOptFloat64
Defined in: src/client/types.gen.ts:310
function_call?
optionalfunction_call:OpenaiChatCompletionNewParamsFunctionCallUnion
Defined in: src/client/types.gen.ts:311
functions?
optionalfunctions:OpenaiChatCompletionNewParamsFunction[]
Defined in: src/client/types.gen.ts:317
Deprecated in favor of tools.
A list of functions the model may generate JSON inputs for.
logit_bias?
optionallogit_bias:object
Defined in: src/client/types.gen.ts:328
Modify the likelihood of specified tokens appearing in the completion.
Accepts a JSON object that maps tokens (specified by their token ID in the tokenizer) to an associated bias value from -100 to 100. Mathematically, the bias is added to the logits generated by the model prior to sampling. The exact effect will vary per model, but values between -1 and 1 should decrease or increase likelihood of selection; values like -100 or 100 should result in a ban or exclusive selection of the relevant token.
Index Signature
[key: string]: number
logprobs?
optionallogprobs:ParamOptBool
Defined in: src/client/types.gen.ts:331
max_completion_tokens?
optionalmax_completion_tokens:ParamOptInt64
Defined in: src/client/types.gen.ts:332
max_tokens?
optionalmax_tokens:ParamOptInt64
Defined in: src/client/types.gen.ts:333
messages?
optionalmessages:OpenaiChatCompletionMessageParamUnion[]
Defined in: src/client/types.gen.ts:342
A list of messages comprising the conversation so far. Depending on the model you use, different message types (modalities) are supported, like text , images , and audio .
metadata?
optionalmetadata:SharedMetadata
Defined in: src/client/types.gen.ts:343
modalities?
optionalmodalities:string[]
Defined in: src/client/types.gen.ts:358
Output types that you would like the model to generate. Most models are capable of generating text, which is the default:
["text"]
The gpt-4o-audio-preview model can also be used to
generate audio . To request that
this model generate both text and audio responses, you can use:
["text", "audio"]
Any of “text”, “audio”.
model?
optionalmodel:SharedChatModel
Defined in: src/client/types.gen.ts:359
n?
optionaln:ParamOptInt64
Defined in: src/client/types.gen.ts:360
parallel_tool_calls?
optionalparallel_tool_calls:ParamOptBool
Defined in: src/client/types.gen.ts:361
portal?
optionalportal:LlmapiPortalChatCompletionRequest
Defined in: src/client/types.gen.ts:362
prediction?
optionalprediction:OpenaiChatCompletionPredictionContentParam
Defined in: src/client/types.gen.ts:363
presence_penalty?
optionalpresence_penalty:ParamOptFloat64
Defined in: src/client/types.gen.ts:364
prompt_cache_key?
optionalprompt_cache_key:ParamOptString
Defined in: src/client/types.gen.ts:365
reasoning_effort?
optionalreasoning_effort:SharedReasoningEffort
Defined in: src/client/types.gen.ts:366
response_format?
optionalresponse_format:OpenaiChatCompletionNewParamsResponseFormatUnion
Defined in: src/client/types.gen.ts:367
safety_identifier?
optionalsafety_identifier:ParamOptString
Defined in: src/client/types.gen.ts:368
seed?
optionalseed:ParamOptInt64
Defined in: src/client/types.gen.ts:369
service_tier?
optionalservice_tier:OpenaiChatCompletionNewParamsServiceTier
Defined in: src/client/types.gen.ts:370
stop?
optionalstop:OpenaiChatCompletionNewParamsStopUnion
Defined in: src/client/types.gen.ts:371
store?
optionalstore:ParamOptBool
Defined in: src/client/types.gen.ts:372
stream_options?
optionalstream_options:OpenaiChatCompletionStreamOptionsParam
Defined in: src/client/types.gen.ts:373
temperature?
optionaltemperature:ParamOptFloat64
Defined in: src/client/types.gen.ts:374
tool_choice?
optionaltool_choice:OpenaiChatCompletionToolChoiceOptionUnionParam
Defined in: src/client/types.gen.ts:375
tools?
optionaltools:OpenaiChatCompletionToolParam[]
Defined in: src/client/types.gen.ts:381
A list of tools the model may call. Currently, only functions are supported as a tool. Use this to provide a list of functions the model may generate JSON inputs for. A max of 128 functions are supported.
top_logprobs?
optionaltop_logprobs:ParamOptInt64
Defined in: src/client/types.gen.ts:382
top_p?
optionaltop_p:ParamOptFloat64
Defined in: src/client/types.gen.ts:383
user?
optionaluser:ParamOptString
Defined in: src/client/types.gen.ts:384
web_search_options?
optionalweb_search_options:OpenaiChatCompletionNewParamsWebSearchOptions
Defined in: src/client/types.gen.ts:385