OllamaChatRequest
| Property | Type | Required | Description |
|---|---|---|---|
model | string | Yes | Model ID used to generate the response, like gemma3 or llama3.2. Deepfellow supports a wide range of models with different capabilities, and performance characteristics. |
messages | OllamaChatMessage[] | Yes | A list of messages comprising the conversation so far. Depending on the model you use, different message types (modalities) are supported, like text and images. |
tools | OllamaToolDefinition[] | null | No | 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. |
think | boolean | enum | null | No | For thinking models: whether the model should think before responding. Can be a boolean or effort level. |
format | string | object | null | No | The format to return a response in. Can be json or a JSON schema object. |
options | OllamaOptions | null | No | Additional model parameters such as temperature, top_k, top_p and others. |
stream | boolean | No | If false the response will be returned as a single response object, rather than a stream of objects. Default: true. |
keep_alive | string | integer | null | No | Controls how long the model will stay loaded into memory following the request (default: 5m). |
logprobs | boolean | null | No | Return log probabilities of the output tokens. |
top_logprobs | integer | null | No | Number of most likely tokens to return at each token position. |
We use cookies on our website. We use them to ensure proper functioning of the site and, if you agree, for purposes such as analytics, marketing, and targeting ads.