Google Gemini provider implementation for LiteLLM
Google Gemini provider implementation for LiteLLM
Default cost per token for Gemini models (in USD)
Default cost per token for Gemini models (in USD)
(extract-system-instruction messages)Extract system instruction from messages
Extract system instruction from messages
(get-cost-per-token-impl provider-name model)Gemini-specific get-cost-per-token implementation
Gemini-specific get-cost-per-token implementation
(get-rate-limits-impl provider-name)Gemini-specific get-rate-limits implementation
Gemini-specific get-rate-limits implementation
(handle-error-response provider response)Handle Gemini API error responses
Handle Gemini API error responses
(health-check-impl provider-name thread-pool config)Gemini-specific health-check implementation
Gemini-specific health-check implementation
(list-models provider)List available Gemini models
List available Gemini models
(make-request-impl provider-name
                   transformed-request
                   thread-pool
                   telemetry
                   config)Gemini-specific make-request implementation
Gemini-specific make-request implementation
(make-streaming-request-impl provider-name
                             transformed-request
                             thread-pool
                             config)Gemini-specific make-streaming-request implementation
Gemini-specific make-streaming-request implementation
(supports-function-calling-impl provider-name)Gemini-specific supports-function-calling? implementation
Gemini-specific supports-function-calling? implementation
(supports-streaming-impl provider-name)Gemini-specific supports-streaming? implementation
Gemini-specific supports-streaming? implementation
(test-gemini-connection provider thread-pool telemetry)Test Gemini connection with a simple request
Test Gemini connection with a simple request
(transform-candidate candidate)Transform Gemini candidate to standard format
Transform Gemini candidate to standard format
(transform-generation-config request)Transform generation config to Gemini format
Transform generation config to Gemini format
(transform-messages messages)Transform messages to Gemini format
Transform messages to Gemini format
(transform-request-impl provider-name request config)Gemini-specific transform-request implementation
Gemini-specific transform-request implementation
(transform-response response)Transform Gemini response to standard format
Transform Gemini response to standard format
(transform-response-impl provider-name response)Gemini-specific transform-response implementation
Gemini-specific transform-response implementation
(transform-role role)Transform role to Gemini format
Transform role to Gemini format
(transform-streaming-chunk chunk)Transform Gemini streaming chunk to standard format
Transform Gemini streaming chunk to standard format
(transform-streaming-chunk-impl provider-name chunk)Gemini-specific transform-streaming-chunk implementation for multimethod
Gemini-specific transform-streaming-chunk implementation for multimethod
(transform-tool-calls function-calls)Transform Gemini function calls to standard format
Transform Gemini function calls to standard format
(transform-tool-choice tool-choice)Transform tool choice to Gemini format
Transform tool choice to Gemini format
(transform-tools tools)Transform tools to Gemini format
Transform tools to Gemini format
(transform-usage usage-metadata)Transform Gemini usage to standard format
Transform Gemini usage to standard format
(validate-api-key api-key)Validate Gemini API key
Validate Gemini API key
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs | 
| ← | Move to previous article | 
| → | Move to next article | 
| Ctrl+/ | Jump to the search field |