# Functions
ClientFromEnvironment creates a new [Client] using configuration from the environment variable OLLAMA_HOST, which points to the network host and port on which the ollama service is listening.
DefaultOptions is the default set of options for [GenerateRequest]; these values are used unless the user specifies other values explicitly.
FormatParams converts specified parameter options to their correct types.
No description provided by the author
# Structs
ChatRequest describes a request sent by [Client.Chat].
ChatResponse is the response returned by [Client.Chat].
Client encapsulates client state for interacting with the ollama service.
CopyRequest is the request passed to [Client.Copy].
CreateRequest is the request passed to [Client.Create].
DeleteRequest is the request passed to [Client.Delete].
No description provided by the author
EmbeddingRequest is the request passed to [Client.Embeddings].
EmbeddingResponse is the response from [Client.Embeddings].
EmbedRequest is the request passed to [Client.Embed].
EmbedResponse is the response from [Client.Embed].
GenerateRequest describes a request sent by [Client.Generate].
GenerateResponse is the response passed into [GenerateResponseFunc].
ListModelResponse is a single model description in [ListResponse].
ListResponse is the response from [Client.List].
Message is a single message in a chat sequence.
No description provided by the author
ModelDetails provides details about a model.
Options specified in [GenerateRequest].
ProcessModelResponse is a single model description in [ProcessResponse].
ProcessResponse is the response from [Client.Process].
ProgressResponse is the response passed to progress functions like [PullProgressFunc] and [PushProgressFunc].
PullRequest is the request passed to [Client.Pull].
PushRequest is the request passed to [Client.Push].
No description provided by the author
Runner options which must be set when the model is loaded into memory.
ShowRequest is the request passed to [Client.Show].
ShowResponse is the response returned from [Client.Show].
StatusError is an error with an HTTP status code and message.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Type aliases
ChatResponseFunc is a function that [Client.Chat] invokes every time a response is received from the service.
CreateProgressFunc is a function that [Client.Create] invokes when progress is made.
GenerateResponseFunc is a function that [Client.Generate] invokes every time a response is received from the service.
ImageData represents the raw binary data of an image file.
PullProgressFunc is a function that [Client.Pull] invokes every time there is progress with a "pull" request sent to the service.
PushProgressFunc is a function that [Client.Push] invokes when progress is made.
No description provided by the author
No description provided by the author