1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
mod client; mod config; mod providers; pub mod types; pub use client::VertexClient; pub use config::VertexConfig; pub use types::*; use crate::error::AppError; pub async fn get_vertex_client( config: impl Into<Option<VertexConfig>>, ) -> Result<VertexClient, AppError> { let auth = config::resolve_auth(config.into()).await?; let http = reqwest::Client::new(); Ok(VertexClient::new(http, auth)) }