ChatRequest
Defined in: lib/providers/types.ts:93
Properties
Section titled “Properties”keep_alive?
Section titled “keep_alive?”
optionalkeep_alive?:string|number
Defined in: lib/providers/types.ts:109
max_tokens?
Section titled “max_tokens?”
optionalmax_tokens?:number
Defined in: lib/providers/types.ts:110
messages
Section titled “messages”messages:
ChatMessage[]
Defined in: lib/providers/types.ts:95
min_p?
Section titled “min_p?”
optionalmin_p?:number
Defined in: lib/providers/types.ts:104
model:
string
Defined in: lib/providers/types.ts:94
num_batch?
Section titled “num_batch?”
optionalnum_batch?:number
Defined in: lib/providers/types.ts:108
num_ctx?
Section titled “num_ctx?”
optionalnum_ctx?:number
Defined in: lib/providers/types.ts:102
num_gpu?
Section titled “num_gpu?”
optionalnum_gpu?:number
Defined in: lib/providers/types.ts:107
num_predict?
Section titled “num_predict?”
optionalnum_predict?:number
Defined in: lib/providers/types.ts:103
num_thread?
Section titled “num_thread?”
optionalnum_thread?:number
Defined in: lib/providers/types.ts:106
repeat_last_n?
Section titled “repeat_last_n?”
optionalrepeat_last_n?:number
Defined in: lib/providers/types.ts:100
repeat_penalty?
Section titled “repeat_penalty?”
optionalrepeat_penalty?:number
Defined in: lib/providers/types.ts:99
optionalseed?:number
Defined in: lib/providers/types.ts:101
optionalstop?:string[]
Defined in: lib/providers/types.ts:105
stream?
Section titled “stream?”
optionalstream?:boolean
Defined in: lib/providers/types.ts:111
temperature?
Section titled “temperature?”
optionaltemperature?:number
Defined in: lib/providers/types.ts:96
think?
Section titled “think?”
optionalthink?:boolean
Defined in: lib/providers/types.ts:116
Ollama thinking toggle. Used for short internal utility calls where hidden reasoning would waste time and never be shown to the user.
tool_choice?
Section titled “tool_choice?”
optionaltool_choice?:"auto"|"none"|"required"
Defined in: lib/providers/types.ts:131
Tool-call policy. “none” forbids new tool calls while keeping the tools
array in the payload, so strict OpenAI-compatible endpoints that reject a
message history with tool turns but no tools field do not 400. Used by the
synthesis pass after the tool loop hits its iteration cap. Ollama has no such
param, so its adapter expresses “none” by omitting tools (it accepts tool
history without them).
tools?
Section titled “tools?”
optionaltools?:ToolDefinition[]
Defined in: lib/providers/types.ts:122
Tool definitions offered to the model. Only set for tool-capable models
(gated on resolved toolCalling); when absent the request is identical to
the pre-tool-calling wire shape, so non-tool models are unaffected.
top_k?
Section titled “top_k?”
optionaltop_k?:number
Defined in: lib/providers/types.ts:98
top_p?
Section titled “top_p?”
optionaltop_p?:number
Defined in: lib/providers/types.ts:97