Liking cljdoc? Tell your friends :D

litellm.providers.ollama

Ollama provider implementation for LiteLLM

Ollama provider implementation for LiteLLM
raw docstring

default-cost-mapclj

Default cost per token for Ollama models (in USD) Note: These are approximate and may vary as Ollama is typically run locally

Default cost per token for Ollama models (in USD)
Note: These are approximate and may vary as Ollama is typically run locally
sourceraw docstring

extract-model-nameclj

(extract-model-name model)

Extract actual model name from model string

Extract actual model name from model string
sourceraw docstring

get-cost-per-token-implclj

(get-cost-per-token-impl provider-name model)

Ollama-specific get-cost-per-token implementation

Ollama-specific get-cost-per-token implementation
sourceraw docstring

get-rate-limits-implclj

(get-rate-limits-impl provider-name)

Ollama-specific get-rate-limits implementation

Ollama-specific get-rate-limits implementation
sourceraw docstring

handle-error-responseclj

(handle-error-response provider response)

Handle Ollama API error responses

Handle Ollama API error responses
sourceraw docstring

handle-streaming-responseclj

(handle-streaming-response response callback)

Handle streaming response from Ollama

Handle streaming response from Ollama
sourceraw docstring

health-check-implclj

(health-check-impl provider-name thread-pool config)

Ollama-specific health-check implementation

Ollama-specific health-check implementation
sourceraw docstring

list-modelsclj

(list-models provider)

List available Ollama models

List available Ollama models
sourceraw docstring

make-request-implclj

(make-request-impl provider-name
                   transformed-request
                   thread-pool
                   telemetry
                   config)

Ollama-specific make-request implementation

Ollama-specific make-request implementation
sourceraw docstring

parse-streaming-chunkclj

(parse-streaming-chunk chunk request-type)

Parse a streaming chunk from Ollama

Parse a streaming chunk from Ollama
sourceraw docstring

supports-function-calling-implclj

(supports-function-calling-impl provider-name)

Ollama-specific supports-function-calling? implementation

Ollama-specific supports-function-calling? implementation
sourceraw docstring

supports-streaming-implclj

(supports-streaming-impl provider-name)

Ollama-specific supports-streaming? implementation

Ollama-specific supports-streaming? implementation
sourceraw docstring

test-ollama-connectionclj

(test-ollama-connection provider thread-pool telemetry)

Test Ollama connection with a simple request

Test Ollama connection with a simple request
sourceraw docstring

transform-chat-responseclj

(transform-chat-response response)

Transform Ollama chat response to standard format

Transform Ollama chat response to standard format
sourceraw docstring

transform-generate-responseclj

(transform-generate-response response)

Transform Ollama generate response to standard format

Transform Ollama generate response to standard format
sourceraw docstring

transform-messages-for-chatclj

(transform-messages-for-chat messages)

Transform messages to Ollama chat format

Transform messages to Ollama chat format
sourceraw docstring

transform-messages-for-generateclj

(transform-messages-for-generate messages)

Transform messages to Ollama generate format (single prompt)

Transform messages to Ollama generate format (single prompt)
sourceraw docstring

transform-request-implclj

(transform-request-impl provider-name request config)

Ollama-specific transform-request implementation

Ollama-specific transform-request implementation
sourceraw docstring

transform-response-implclj

(transform-response-impl provider-name response)

Ollama-specific transform-response implementation

Ollama-specific transform-response implementation
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close