mirror of
https://github.com/BerriAI/litellm.git
synced 2026-12-06 02:09:04 +00:00
VertexParams in auth-types holds the vertex_* fields of CredentialLiteLLMParams in both spellings, with one ParamSpec per setting: the wire names, the litellm module global VertexBase.get_vertex_ai_* consults, and the environment names. A credential deserializes from text or the JSON object a config spells, an empty object counts as absent, and both credential fields are redacted in Debug. auth-gcp is split so lib.rs is the entrypoint (config, auth, constants), its lookups resolve through the specs, secret_names() derives from them, and get_vertex_ai_project_from_credentials reads a service account's project_id for hosts that need it before a token exchange. The OCR host folds the module globals in by spec at projection, so OcrSettings no longer carries vertex_project and vertex_location.
16 lines
439 B
Rust
16 lines
439 B
Rust
mod auth;
|
|
mod config;
|
|
pub mod constants;
|
|
#[cfg(feature = "google-sdk")]
|
|
mod sdk;
|
|
|
|
pub use auth::{
|
|
VertexAuth, VertexAuthFuture, VertexEnvironment, VertexProviderLoader, VertexTokenSource,
|
|
};
|
|
pub use config::{
|
|
CredentialSource, VertexConfig, get_vertex_ai_location, get_vertex_ai_project,
|
|
get_vertex_ai_project_from_credentials,
|
|
};
|
|
pub use constants::secret_names;
|
|
#[cfg(feature = "google-sdk")]
|
|
pub use sdk::GoogleCredentials;
|