LlmapiChatCompletionRequest
LlmapiChatCompletionRequest =
object
Defined in: src/client/types.gen.ts:176
Properties
any?
optionalany:unknown
Defined in: src/client/types.gen.ts:177
audio?
optionalaudio:OpenaiChatCompletionAudioParam
Defined in: src/client/types.gen.ts:178
frequency_penalty?
optionalfrequency_penalty:ParamOptFloat64
Defined in: src/client/types.gen.ts:179
function_call?
optionalfunction_call:OpenaiChatCompletionNewParamsFunctionCallUnion
Defined in: src/client/types.gen.ts:180
functions?
optionalfunctions:OpenaiChatCompletionNewParamsFunction[]
Defined in: src/client/types.gen.ts:186
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:197
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:200
max_completion_tokens?
optionalmax_completion_tokens:ParamOptInt64
Defined in: src/client/types.gen.ts:201
max_tokens?
optionalmax_tokens:ParamOptInt64
Defined in: src/client/types.gen.ts:202
messages?
optionalmessages:OpenaiChatCompletionMessageParamUnion[]
Defined in: src/client/types.gen.ts:211
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:212
modalities?
optionalmodalities:string[]
Defined in: src/client/types.gen.ts:227
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:228
n?
optionaln:ParamOptInt64
Defined in: src/client/types.gen.ts:229
parallel_tool_calls?
optionalparallel_tool_calls:ParamOptBool
Defined in: src/client/types.gen.ts:230
portal?
optionalportal:LlmapiPortalChatCompletionRequest
Defined in: src/client/types.gen.ts:231
prediction?
optionalprediction:OpenaiChatCompletionPredictionContentParam
Defined in: src/client/types.gen.ts:232
presence_penalty?
optionalpresence_penalty:ParamOptFloat64
Defined in: src/client/types.gen.ts:233
prompt_cache_key?
optionalprompt_cache_key:ParamOptString
Defined in: src/client/types.gen.ts:234
reasoning_effort?
optionalreasoning_effort:SharedReasoningEffort
Defined in: src/client/types.gen.ts:235
response_format?
optionalresponse_format:OpenaiChatCompletionNewParamsResponseFormatUnion
Defined in: src/client/types.gen.ts:236
safety_identifier?
optionalsafety_identifier:ParamOptString
Defined in: src/client/types.gen.ts:237
seed?
optionalseed:ParamOptInt64
Defined in: src/client/types.gen.ts:238
service_tier?
optionalservice_tier:OpenaiChatCompletionNewParamsServiceTier
Defined in: src/client/types.gen.ts:239
stop?
optionalstop:OpenaiChatCompletionNewParamsStopUnion
Defined in: src/client/types.gen.ts:240
store?
optionalstore:ParamOptBool
Defined in: src/client/types.gen.ts:241
stream_options?
optionalstream_options:OpenaiChatCompletionStreamOptionsParam
Defined in: src/client/types.gen.ts:242
temperature?
optionaltemperature:ParamOptFloat64
Defined in: src/client/types.gen.ts:243
tool_choice?
optionaltool_choice:OpenaiChatCompletionToolChoiceOptionUnionParam
Defined in: src/client/types.gen.ts:244
tools?
optionaltools:OpenaiChatCompletionToolParam[]
Defined in: src/client/types.gen.ts:250
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:251
top_p?
optionaltop_p:ParamOptFloat64
Defined in: src/client/types.gen.ts:252
user?
optionaluser:ParamOptString
Defined in: src/client/types.gen.ts:253
web_search_options?
optionalweb_search_options:OpenaiChatCompletionNewParamsWebSearchOptions
Defined in: src/client/types.gen.ts:254