OllamaConfig

OllamaConfig is a configuration class for managing the settings required to connect and interact with an Ollama-based language model server. It includes properties for setting the server's base URL, connection timeouts, and an HTTP client for underlying network communication.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

The base URL for the Ollama API, used as the endpoint for all HTTP requests made by the Ollama client. By default, it is set to [OllamaClient.baseUrl].

Link copied to clipboard

A configurable HTTP client used for handling HTTP requests and responses. This client is used to interact with external APIs or services requiring network communication. It can be customized with specific timeout configurations and other properties through the containing class.

Link copied to clipboard

Configuration object for specifying timeout settings for network operations within the OllamaConfig class. It defines timeouts for requests, connection establishment, and socket operations in milliseconds.

Functions

Link copied to clipboard

Configures timeout settings for network connections by applying the provided configuration block.