Interface: OllamaProviderConfig

Defined in: providers/ollama.ts:32

Configuration for OllamaProvider

Properties

baseUrl?

optional baseUrl?: string;

Defined in: providers/ollama.ts:34

Base URL for Ollama server (default: http://localhost:11434)

estimateTokens?

optional estimateTokens?: (text) => number;

Defined in: providers/ollama.ts:44

Optional token estimator (e.g., tiktoken) for debug payload

Parameters

Parameter Type
text string

Returns

number

keepAlive?

optional keepAlive?: string;

Defined in: providers/ollama.ts:42

Keep alive duration for model in memory (default: ‘5m’)

maxTokens?

optional maxTokens?: number;

Defined in: providers/ollama.ts:38

Default max tokens (default: 4096)

model?

optional model?: string;

Defined in: providers/ollama.ts:36

Default model to use (default: llama3.1)

timeout?

optional timeout?: number;

Defined in: providers/ollama.ts:40

Request timeout in milliseconds (default: 120000)