mirror of
https://github.com/fawney19/Aether.git
synced 2026-10-08 10:27:46 +08:00
fix: route Gemini client identity through transport facade
This commit is contained in:
@@ -66,7 +66,7 @@ pub(crate) async fn build_gemini_cli_v1internal_provider_request(
|
||||
|
||||
let extra_headers = BTreeMap::from([(
|
||||
"user-agent".to_string(),
|
||||
aether_provider_transport::gemini_cli::gemini_cli_client_user_agent(),
|
||||
crate::ai_serving::transport::gemini_cli::gemini_cli_client_user_agent(),
|
||||
)]);
|
||||
let headers = build_standard_provider_request_headers(StandardProviderRequestHeadersInput {
|
||||
transport: &payload.transport,
|
||||
|
||||
@@ -534,7 +534,7 @@ pub(crate) async fn resolve_local_same_format_provider_candidate_payload_parts(
|
||||
if prepared.behavior.is_gemini_cli {
|
||||
extra_headers.insert(
|
||||
"user-agent".to_string(),
|
||||
aether_provider_transport::gemini_cli::gemini_cli_client_user_agent(),
|
||||
crate::ai_serving::transport::gemini_cli::gemini_cli_client_user_agent(),
|
||||
);
|
||||
}
|
||||
let Some(mut provider_request_headers) = (if is_grok {
|
||||
|
||||
Reference in New Issue
Block a user