fix(ai): align Gemini and Responses compatibility

This commit is contained in:
ZheFox
2026-08-27 22:13:20 +08:00
parent 7892aa9485
commit 4da8c57fe3
7 changed files with 293 additions and 39 deletions
+2 -2
View File
@@ -285,7 +285,7 @@ pub async fn build_antigravity_load_code_assist_plan(
transport,
ModelFetchExecutionPlanRequest {
method: "POST".to_string(),
url: "https://daily-cloudcode-pa.googleapis.com/v1internal:loadCodeAssist".to_string(),
url: "https://cloudcode-pa.googleapis.com/v1internal:loadCodeAssist".to_string(),
headers,
content_type: Some("application/json".to_string()),
body: RequestBody::from_json(json!({
@@ -1212,7 +1212,7 @@ mod tests {
assert_eq!(plan.method, "POST");
assert_eq!(
plan.url,
"https://daily-cloudcode-pa.googleapis.com/v1internal:loadCodeAssist"
"https://cloudcode-pa.googleapis.com/v1internal:loadCodeAssist"
);
assert_eq!(
plan.headers.get("authorization").map(String::as_str),