Liking cljdoc? Tell your friends :D

litellm.providers.gemini

Google Gemini provider implementation for LiteLLM

Google Gemini provider implementation for LiteLLM
raw docstring

default-cost-mapclj

Default cost per token for Gemini models (in USD)

Default cost per token for Gemini models (in USD)
sourceraw docstring

default-model-mappingclj

Default model name mappings

Default model name mappings
sourceraw docstring

extract-system-instructionclj

(extract-system-instruction messages)

Extract system instruction from messages

Extract system instruction from messages
sourceraw docstring

get-cost-per-token-implclj

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

Gemini-specific get-cost-per-token implementation

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

get-rate-limits-implclj

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

Gemini-specific get-rate-limits implementation

Gemini-specific get-rate-limits implementation
sourceraw docstring

handle-error-responseclj

(handle-error-response provider response)

Handle Gemini API error responses

Handle Gemini API error responses
sourceraw docstring

health-check-implclj

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

Gemini-specific health-check implementation

Gemini-specific health-check implementation
sourceraw docstring

list-modelsclj

(list-models provider)

List available Gemini models

List available Gemini models
sourceraw docstring

make-request-implclj

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

Gemini-specific make-request implementation

Gemini-specific make-request implementation
sourceraw docstring

make-streaming-request-implclj

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

Gemini-specific make-streaming-request implementation

Gemini-specific make-streaming-request implementation
sourceraw docstring

supports-function-calling-implclj

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

Gemini-specific supports-function-calling? implementation

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

supports-streaming-implclj

(supports-streaming-impl provider-name)

Gemini-specific supports-streaming? implementation

Gemini-specific supports-streaming? implementation
sourceraw docstring

test-gemini-connectionclj

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

Test Gemini connection with a simple request

Test Gemini connection with a simple request
sourceraw docstring

transform-candidateclj

(transform-candidate candidate)

Transform Gemini candidate to standard format

Transform Gemini candidate to standard format
sourceraw docstring

transform-generation-configclj

(transform-generation-config request)

Transform generation config to Gemini format

Transform generation config to Gemini format
sourceraw docstring

transform-messagesclj

(transform-messages messages)

Transform messages to Gemini format

Transform messages to Gemini format
sourceraw docstring

transform-request-implclj

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

Gemini-specific transform-request implementation

Gemini-specific transform-request implementation
sourceraw docstring

transform-responseclj

(transform-response response)

Transform Gemini response to standard format

Transform Gemini response to standard format
sourceraw docstring

transform-response-implclj

(transform-response-impl provider-name response)

Gemini-specific transform-response implementation

Gemini-specific transform-response implementation
sourceraw docstring

transform-roleclj

(transform-role role)

Transform role to Gemini format

Transform role to Gemini format
sourceraw docstring

transform-streaming-chunkclj

(transform-streaming-chunk chunk)

Transform Gemini streaming chunk to standard format

Transform Gemini streaming chunk to standard format
sourceraw docstring

transform-streaming-chunk-implclj

(transform-streaming-chunk-impl provider-name chunk)

Gemini-specific transform-streaming-chunk implementation for multimethod

Gemini-specific transform-streaming-chunk implementation for multimethod
sourceraw docstring

transform-tool-callsclj

(transform-tool-calls function-calls)

Transform Gemini function calls to standard format

Transform Gemini function calls to standard format
sourceraw docstring

transform-tool-choiceclj

(transform-tool-choice tool-choice)

Transform tool choice to Gemini format

Transform tool choice to Gemini format
sourceraw docstring

transform-toolsclj

(transform-tools tools)

Transform tools to Gemini format

Transform tools to Gemini format
sourceraw docstring

transform-usageclj

(transform-usage usage-metadata)

Transform Gemini usage to standard format

Transform Gemini usage to standard format
sourceraw docstring

validate-api-keyclj

(validate-api-key api-key)

Validate Gemini API key

Validate Gemini API key
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