litellm

package
v0.7.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 23, 2026 License: Apache-2.0 Imports: 3 Imported by: 2 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package litellm resolves model windows and prices against a LiteLLM gateway.

It is the one network call in the models family. It sits apart from package models for the same reason internal/modelinfo/litellm sits apart from internal/modelinfo: models stays I/O-free, so it passes the core boundary (internal/boundary). This package is a host package, like the one it wraps.

It is a FACADE: an alias and a thin wrapper over internal/modelinfo/litellm, adding no behaviour. It must never import proxy or proxyapp (issue #1251).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LiteLLM

type LiteLLM = litellm.LiteLLM

LiteLLM resolves against the LiteLLM community price/window map. It is a models.Resolver and a models.Pricer.

func New

func New(url string, client *http.Client, ttl time.Duration) *LiteLLM

New resolves model windows against a LiteLLM gateway, cached for ttl.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL