ChatRequest
Defined in: lib/providers/types.ts:44
Properties
Section titled “Properties”keep_alive?
Section titled “keep_alive?”
optionalkeep_alive?:string|number
Defined in: lib/providers/types.ts:60
max_tokens?
Section titled “max_tokens?”
optionalmax_tokens?:number
Defined in: lib/providers/types.ts:61
messages
Section titled “messages”messages:
ChatMessage[]
Defined in: lib/providers/types.ts:46
min_p?
Section titled “min_p?”
optionalmin_p?:number
Defined in: lib/providers/types.ts:55
model:
string
Defined in: lib/providers/types.ts:45
num_batch?
Section titled “num_batch?”
optionalnum_batch?:number
Defined in: lib/providers/types.ts:59
num_ctx?
Section titled “num_ctx?”
optionalnum_ctx?:number
Defined in: lib/providers/types.ts:53
num_gpu?
Section titled “num_gpu?”
optionalnum_gpu?:number
Defined in: lib/providers/types.ts:58
num_predict?
Section titled “num_predict?”
optionalnum_predict?:number
Defined in: lib/providers/types.ts:54
num_thread?
Section titled “num_thread?”
optionalnum_thread?:number
Defined in: lib/providers/types.ts:57
repeat_last_n?
Section titled “repeat_last_n?”
optionalrepeat_last_n?:number
Defined in: lib/providers/types.ts:51
repeat_penalty?
Section titled “repeat_penalty?”
optionalrepeat_penalty?:number
Defined in: lib/providers/types.ts:50
optionalseed?:number
Defined in: lib/providers/types.ts:52
optionalstop?:string[]
Defined in: lib/providers/types.ts:56
stream?
Section titled “stream?”
optionalstream?:boolean
Defined in: lib/providers/types.ts:62
temperature?
Section titled “temperature?”
optionaltemperature?:number
Defined in: lib/providers/types.ts:47
think?
Section titled “think?”
optionalthink?:boolean
Defined in: lib/providers/types.ts:67
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:82
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:73
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:49
top_p?
Section titled “top_p?”
optionaltop_p?:number
Defined in: lib/providers/types.ts:48