mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-22 10:40:46 +00:00
litellm-router-types mirrors litellm/types/router.py: LitellmParams holds the model, the credentials, one flattened group per credential family from auth-types (aws, vertex), the deployment settings a config spells, and every other key in extra, as Python's extra="allow" keeps it. Config parses it directly, so config::LiteLlmParams and its untyped additional_fields are gone and a mistyped provider param is a parse error. fields() and specs() derive from the families' param specs for hosts that project kwargs and fold module globals. Spelled<T> is the one untagged shape for a typed value or the text a config spells, organization takes the list Python's router expands, and the callback shorthand keeps a value-level one-or-many. No credentials wrapper group: serde's flatten only consumes keys for struct-shaped children.
19 lines
416 B
TOML
19 lines
416 B
TOML
[package]
|
|
name = "litellm-config"
|
|
version = "0.1.0"
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
repository.workspace = true
|
|
|
|
[dependencies]
|
|
litellm-auth-types.workspace = true
|
|
litellm-router-types.workspace = true
|
|
serde.workspace = true
|
|
serde_yaml_ng = "0.10.0"
|
|
strum.workspace = true
|
|
thiserror.workspace = true
|
|
|
|
[dev-dependencies]
|
|
rstest.workspace = true
|
|
serde_json.workspace = true
|
|
tempfile.workspace = true
|