2026-04-05 20:23:16 +08:00
|
|
|
mod auth;
|
2026-04-23 23:01:06 +08:00
|
|
|
mod context;
|
2026-04-05 20:23:16 +08:00
|
|
|
mod policy;
|
|
|
|
|
mod url;
|
|
|
|
|
|
|
|
|
|
pub use auth::{
|
2026-05-10 15:51:38 +08:00
|
|
|
parse_vertex_service_account_auth_config, resolve_local_vertex_api_key_query_auth,
|
|
|
|
|
resolve_local_vertex_service_account_auth_config,
|
|
|
|
|
supports_local_vertex_service_account_auth_resolution, VertexApiKeyQueryAuth,
|
2026-05-10 19:07:51 +08:00
|
|
|
VertexServiceAccountAuthConfig, VertexServiceAccountRefreshAdapter, VERTEX_API_KEY_QUERY_PARAM,
|
|
|
|
|
VERTEX_SERVICE_ACCOUNT_AUTH_HEADER, VERTEX_SERVICE_ACCOUNT_PROVIDER_TYPE,
|
2026-04-05 20:23:16 +08:00
|
|
|
};
|
2026-04-23 23:01:06 +08:00
|
|
|
pub use context::{
|
2026-09-04 03:45:52 +08:00
|
|
|
is_valid_vertex_region, is_vertex_api_key_transport_context,
|
|
|
|
|
is_vertex_service_account_transport_context, is_vertex_transport_context,
|
|
|
|
|
looks_like_vertex_ai_host, uses_vertex_api_key_query_auth,
|
2026-04-23 23:01:06 +08:00
|
|
|
};
|
2026-04-05 20:23:16 +08:00
|
|
|
pub use policy::{
|
2026-04-19 21:45:57 +08:00
|
|
|
local_vertex_api_key_gemini_transport_unsupported_reason_with_network,
|
2026-05-10 15:51:38 +08:00
|
|
|
local_vertex_gemini_transport_unsupported_reason_with_network,
|
2026-04-05 20:23:16 +08:00
|
|
|
supports_local_vertex_api_key_gemini_transport,
|
|
|
|
|
supports_local_vertex_api_key_gemini_transport_with_network,
|
|
|
|
|
supports_local_vertex_api_key_imagen_transport,
|
|
|
|
|
supports_local_vertex_api_key_imagen_transport_with_network,
|
2026-05-10 15:51:38 +08:00
|
|
|
supports_local_vertex_gemini_transport_with_network,
|
2026-04-05 20:23:16 +08:00
|
|
|
};
|
|
|
|
|
pub use url::{
|
2026-05-18 00:53:34 +00:00
|
|
|
build_vertex_api_key_gemini_content_url, build_vertex_api_key_gemini_embedding_url,
|
|
|
|
|
build_vertex_api_key_imagen_content_url, build_vertex_service_account_gemini_content_url,
|
|
|
|
|
build_vertex_service_account_gemini_embedding_url, resolve_vertex_service_account_region,
|
2026-04-05 20:23:16 +08:00
|
|
|
VERTEX_API_KEY_BASE_URL,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
pub const PROVIDER_TYPE: &str = "vertex_ai";
|