feat: support Gemini CLI v1internal quota

This commit is contained in:
Mas0nShi
2026-05-21 15:38:10 +08:00
parent b84e4a96e2
commit e53d5f07e8
67 changed files with 1898 additions and 79 deletions
@@ -70,6 +70,7 @@ pub struct GatewayProviderTransportKey {
pub expires_at_unix_secs: Option<u64>,
pub proxy: Option<serde_json::Value>,
pub fingerprint: Option<serde_json::Value>,
pub upstream_metadata: Option<serde_json::Value>,
pub decrypted_api_key: String,
pub decrypted_auth_config: Option<String>,
}
@@ -398,6 +399,7 @@ mod tests {
expires_at_unix_secs: Some(1_800_000_000),
proxy: Some(serde_json::json!({"node_id":"proxy-node-1"})),
fingerprint: Some(serde_json::json!({"transport_profile":"chrome_136"})),
upstream_metadata: None,
decrypted_api_key: "sk-live-openai".to_string(),
decrypted_auth_config: Some(
"{\"refresh_token\":\"rt-1\",\"project\":\"demo\"}".to_string(),