v3.10.3 — Fix Antigravity 404: verified REST model IDs
This commit is contained in:
@@ -335,7 +335,7 @@ def _codebuff_get_session(token, model):
|
||||
req = urllib.request.Request(url, data=body, headers={
|
||||
"Content-Type": "application/json",
|
||||
"Authorization": f"Bearer {token}",
|
||||
"User-Agent": "codex-launcher/3.10.2",
|
||||
"User-Agent": "codex-launcher/3.10.3",
|
||||
"x-codebuff-model": model,
|
||||
})
|
||||
try:
|
||||
@@ -383,7 +383,7 @@ def _codebuff_start_run(token, agent_id):
|
||||
req = urllib.request.Request(url, data=body, headers={
|
||||
"Content-Type": "application/json",
|
||||
"Authorization": f"Bearer {token}",
|
||||
"User-Agent": "codex-launcher/3.10.2",
|
||||
"User-Agent": "codex-launcher/3.10.3",
|
||||
})
|
||||
try:
|
||||
resp = urllib.request.urlopen(req, timeout=15)
|
||||
@@ -416,7 +416,7 @@ def _codebuff_finish_run(token, run_id, status="completed"):
|
||||
req = urllib.request.Request(url, data=body, headers={
|
||||
"Content-Type": "application/json",
|
||||
"Authorization": f"Bearer {token}",
|
||||
"User-Agent": "codex-launcher/3.10.2",
|
||||
"User-Agent": "codex-launcher/3.10.3",
|
||||
})
|
||||
try:
|
||||
urllib.request.urlopen(req, timeout=10)
|
||||
@@ -4315,24 +4315,41 @@ class Handler(http.server.BaseHTTPRequestHandler):
|
||||
|
||||
if OAUTH_PROVIDER == "google-antigravity":
|
||||
alias_map = {
|
||||
"gemini-3.5-flash-high": "Gemini 3.5 Flash (High)",
|
||||
"gemini-3.5-flash-medium": "Gemini 3.5 Flash (Medium)",
|
||||
"gemini-3.1-pro-high": "Gemini 3.1 Pro (High)",
|
||||
"gemini-3.1-pro-low": "Gemini 3.1 Pro (Low)",
|
||||
"gemini-3.1-pro-preview": "Gemini 3.1 Pro (High)",
|
||||
"gemini-3-pro-preview": "Gemini 3.1 Pro (High)",
|
||||
"gemini-3-pro": "Gemini 3.1 Pro (High)",
|
||||
"gemini-3.1-pro": "Gemini 3.1 Pro (High)",
|
||||
"gemini-3-flash-preview": "Gemini 3.5 Flash (High)",
|
||||
"gemini-3-flash": "Gemini 3.5 Flash (High)",
|
||||
"antigravity-gemini-3-flash": "Gemini 3.5 Flash (High)",
|
||||
"antigravity-gemini-3-pro": "Gemini 3.1 Pro (High)",
|
||||
"antigravity-gemini-3.1-pro": "Gemini 3.1 Pro (High)",
|
||||
"antigravity-claude-sonnet-4-6": "Claude Sonnet 4.6 Thinking",
|
||||
"antigravity-claude-opus-4-6-thinking": "Claude Opus 4.6 Thinking",
|
||||
"claude-sonnet-4.6-thinking": "Claude Sonnet 4.6 Thinking",
|
||||
"claude-opus-4.6-thinking": "Claude Opus 4.6 Thinking",
|
||||
"gpt-oss-120b-medium": "GPT-OSS 120B Medium",
|
||||
"Gemini 3.5 Flash (High)": "gemini-3-flash",
|
||||
"Gemini 3.5 Flash (Medium)": "gemini-3-flash",
|
||||
"Gemini 3.5 Flash (Low)": "gemini-3.5-flash-low",
|
||||
"gemini-3.5-flash-high": "gemini-3-flash",
|
||||
"gemini-3.5-flash-medium": "gemini-3-flash",
|
||||
"gemini-3.5-flash-low": "gemini-3.5-flash-low",
|
||||
"gemini-3-flash-preview": "gemini-3-flash",
|
||||
"gemini-3-flash": "gemini-3-flash",
|
||||
"antigravity-gemini-3-flash": "gemini-3-flash",
|
||||
"Gemini 3.1 Pro (High)": "gemini-3.1-pro-low",
|
||||
"Gemini 3.1 Pro (Low)": "gemini-3.1-pro-low",
|
||||
"gemini-3.1-pro-high": "gemini-3.1-pro-low",
|
||||
"gemini-3.1-pro-low": "gemini-3.1-pro-low",
|
||||
"gemini-3.1-pro-preview": "gemini-3.1-pro-low",
|
||||
"gemini-3.1-pro": "gemini-3.1-pro-low",
|
||||
"gemini-3-pro-preview": "gemini-3.1-pro-low",
|
||||
"gemini-3-pro": "gemini-3.1-pro-low",
|
||||
"gemini-3-pro-low": "gemini-3.1-pro-low",
|
||||
"gemini-3-pro-high": "gemini-3.1-pro-low",
|
||||
"antigravity-gemini-3-pro": "gemini-3.1-pro-low",
|
||||
"antigravity-gemini-3.1-pro": "gemini-3.1-pro-low",
|
||||
"Claude Sonnet 4.6 (Thinking)": "claude-sonnet-4-6",
|
||||
"Claude Sonnet 4.6 Thinking": "claude-sonnet-4-6",
|
||||
"claude-sonnet-4.6-thinking": "claude-sonnet-4-6",
|
||||
"antigravity-claude-sonnet-4-6": "claude-sonnet-4-6",
|
||||
"Claude Opus 4.6 (Thinking)": "claude-opus-4-6-thinking",
|
||||
"Claude Opus 4.6 Thinking": "claude-opus-4-6-thinking",
|
||||
"claude-opus-4.6-thinking": "claude-opus-4-6-thinking",
|
||||
"antigravity-claude-opus-4-6-thinking": "claude-opus-4-6-thinking",
|
||||
"GPT-OSS 120B (Medium)": "gpt-oss-120b-medium",
|
||||
"GPT-OSS 120B Medium": "gpt-oss-120b-medium",
|
||||
"gpt-oss-120b": "gpt-oss-120b-medium",
|
||||
"gemini-2.5-flash": "gemini-2.5-flash",
|
||||
"gemini-2.5-pro": "gemini-2.5-pro",
|
||||
"gemini-2.5-flash-lite": "gemini-2.5-flash-lite",
|
||||
}
|
||||
model = alias_map.get(model, model)
|
||||
if model != original_model:
|
||||
@@ -5325,7 +5342,7 @@ class Handler(http.server.BaseHTTPRequestHandler):
|
||||
headers = {
|
||||
"Content-Type": "application/json",
|
||||
"Authorization": f"Bearer {token}",
|
||||
"User-Agent": "codex-launcher/3.10.2",
|
||||
"User-Agent": "codex-launcher/3.10.3",
|
||||
"x-codebuff-model": model,
|
||||
}
|
||||
if instance_id:
|
||||
@@ -5491,7 +5508,7 @@ class Handler(http.server.BaseHTTPRequestHandler):
|
||||
if body.get("tool_choice"):
|
||||
chat_body["tool_choice"] = body["tool_choice"]
|
||||
target = f"{_CODEBUFF_API_URL}/api/v1/chat/completions"
|
||||
headers = {"Content-Type": "application/json", "Authorization": f"Bearer {token}", "User-Agent": "codex-launcher/3.10.2", "x-codebuff-model": model}
|
||||
headers = {"Content-Type": "application/json", "Authorization": f"Bearer {token}", "User-Agent": "codex-launcher/3.10.3", "x-codebuff-model": model}
|
||||
if instance_id:
|
||||
headers["x-codebuff-instance-id"] = instance_id
|
||||
print(f"[codebuff] retry POST {target} model={model} stream={stream} run={run_id} (thinking disabled via DeepSeek native)", file=sys.stderr)
|
||||
|
||||
Reference in New Issue
Block a user