mirror of
https://github.com/fawney19/Aether.git
synced 2026-10-04 00:17:45 +08:00
fix(antigravity): omit agent requestType from v1internal envelope
This commit is contained in:
@@ -2763,7 +2763,7 @@ mod tests {
|
||||
payload.provider_request_body["userAgent"],
|
||||
"vscode/1.X.X (Antigravity/4.3.0)"
|
||||
);
|
||||
assert_eq!(payload.provider_request_body["requestType"], "agent");
|
||||
assert!(payload.provider_request_body.get("requestType").is_none());
|
||||
assert!(payload.provider_request_body.get("contents").is_none());
|
||||
assert!(payload.provider_request_body["request"]
|
||||
.get("contents")
|
||||
|
||||
@@ -1972,7 +1972,7 @@ async fn gateway_executes_openai_chat_antigravity_cross_format_sync_via_local_fi
|
||||
seen_execution_runtime_request.user_agent,
|
||||
aether_provider_transport::antigravity::ANTIGRAVITY_REQUEST_USER_AGENT
|
||||
);
|
||||
assert_eq!(seen_execution_runtime_request.request_type, "agent");
|
||||
assert_eq!(seen_execution_runtime_request.request_type, "");
|
||||
assert_eq!(seen_execution_runtime_request.contents_len, 1);
|
||||
assert!(!seen_execution_runtime_request.request_has_model);
|
||||
|
||||
|
||||
@@ -1570,7 +1570,7 @@ async fn gateway_executes_openai_responses_antigravity_cross_format_upstream_str
|
||||
seen_remote_execution_runtime_request.user_agent,
|
||||
aether_provider_transport::antigravity::ANTIGRAVITY_REQUEST_USER_AGENT
|
||||
);
|
||||
assert_eq!(seen_remote_execution_runtime_request.request_type, "agent");
|
||||
assert_eq!(seen_remote_execution_runtime_request.request_type, "");
|
||||
assert_eq!(seen_remote_execution_runtime_request.contents_len, 1);
|
||||
assert!(!seen_remote_execution_runtime_request.request_has_model);
|
||||
|
||||
|
||||
@@ -2155,7 +2155,7 @@ async fn gateway_executes_antigravity_gemini_cli_sync_upstream_stream_via_local_
|
||||
seen_remote_execution_runtime_request.user_agent,
|
||||
aether_provider_transport::antigravity::ANTIGRAVITY_REQUEST_USER_AGENT
|
||||
);
|
||||
assert_eq!(seen_remote_execution_runtime_request.request_type, "agent");
|
||||
assert_eq!(seen_remote_execution_runtime_request.request_type, "");
|
||||
assert_eq!(seen_remote_execution_runtime_request.contents_len, 0);
|
||||
assert!((seen_remote_execution_runtime_request.exact_temperature - 0.2).abs() < f64::EPSILON);
|
||||
assert!(!seen_remote_execution_runtime_request.request_has_model);
|
||||
|
||||
@@ -2060,7 +2060,7 @@ async fn gateway_executes_antigravity_gemini_cli_stream_via_local_decision_gate_
|
||||
seen_execution_runtime_request.user_agent,
|
||||
aether_provider_transport::antigravity::ANTIGRAVITY_REQUEST_USER_AGENT
|
||||
);
|
||||
assert_eq!(seen_execution_runtime_request.request_type, "agent");
|
||||
assert_eq!(seen_execution_runtime_request.request_type, "");
|
||||
assert_eq!(seen_execution_runtime_request.contents_len, 0);
|
||||
assert!((seen_execution_runtime_request.exact_temperature - 0.2).abs() < f64::EPSILON);
|
||||
assert!(!seen_execution_runtime_request.request_has_model);
|
||||
|
||||
@@ -2374,7 +2374,7 @@ async fn gateway_executes_antigravity_gemini_cli_sync_via_local_decision_gate_af
|
||||
seen_execution_runtime_request.user_agent,
|
||||
aether_provider_transport::antigravity::ANTIGRAVITY_REQUEST_USER_AGENT
|
||||
);
|
||||
assert_eq!(seen_execution_runtime_request.request_type, "agent");
|
||||
assert_eq!(seen_execution_runtime_request.request_type, "");
|
||||
assert_eq!(seen_execution_runtime_request.contents_len, 0);
|
||||
assert!((seen_execution_runtime_request.exact_temperature - 0.2).abs() < f64::EPSILON);
|
||||
assert!(!seen_execution_runtime_request.request_has_model);
|
||||
|
||||
Reference in New Issue
Block a user