Skip to content

Commit 944b9e7

Browse files
committed
修复反重力不正常的503/429问题
1 parent 1d60d9b commit 944b9e7

5 files changed

Lines changed: 7 additions & 7 deletions

File tree

.env.example

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ RESOURCE_MANAGER_API_URL=https://cloudresourcemanager.googleapis.com
105105
SERVICE_USAGE_API_URL=https://serviceusage.googleapis.com
106106

107107
# 用于Google Antigravity API的URL (反重力模式)
108-
# 默认: https://daily-cloudcode-pa.sandbox.googleapis.com
109-
ANTIGRAVITY_API_URL=https://daily-cloudcode-pa.sandbox.googleapis.com
108+
# 默认: https://daily-cloudcode-pa.googleapis.com
109+
ANTIGRAVITY_API_URL=https://daily-cloudcode-pa.googleapis.com
110110

111111
# ================================================================
112112
# 错误处理和重试配置

config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -432,12 +432,12 @@ async def get_antigravity_api_url() -> str:
432432
433433
Environment variable: ANTIGRAVITY_API_URL
434434
Database config key: antigravity_api_url
435-
Default: https://daily-cloudcode-pa.sandbox.googleapis.com
435+
Default: https://daily-cloudcode-pa.googleapis.com
436436
"""
437437
return str(
438438
await get_config_value(
439439
"antigravity_api_url",
440-
"https://daily-cloudcode-pa.sandbox.googleapis.com",
440+
"https://daily-cloudcode-pa.googleapis.com",
441441
"ANTIGRAVITY_API_URL",
442442
)
443443
)

front/common.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2861,7 +2861,7 @@ const officialUrls = {
28612861
googleapisProxyUrl: 'https://www.googleapis.com',
28622862
resourceManagerApiUrl: 'https://cloudresourcemanager.googleapis.com',
28632863
serviceUsageApiUrl: 'https://serviceusage.googleapis.com',
2864-
antigravityApiUrl: 'https://daily-cloudcode-pa.sandbox.googleapis.com'
2864+
antigravityApiUrl: 'https://daily-cloudcode-pa.googleapis.com'
28652865
};
28662866

28672867
function useMirrorUrls() {

front/control_panel.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2098,7 +2098,7 @@ <h4>端点配置</h4>
20982098
<div class="form-group">
20992099
<label for="antigravityApiUrl">Antigravity API Endpoint:</label>
21002100
<input type="text" id="antigravityApiUrl" class="config-input"
2101-
placeholder="https://daily-cloudcode-pa.sandbox.googleapis.com" />
2101+
placeholder="https://daily-cloudcode-pa.googleapis.com" />
21022102
<small class="config-note">Google Antigravity API端点地址,用于反重力模式</small>
21032103
</div>
21042104
</div>

front/control_panel_mobile.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1821,7 +1821,7 @@ <h4 style="margin-top: 0; margin-bottom: 15px;">端点配置</h4>
18211821
<div class="form-group">
18221822
<label for="antigravityApiUrl">Antigravity API Endpoint:</label>
18231823
<input type="text" id="antigravityApiUrl"
1824-
placeholder="https://daily-cloudcode-pa.sandbox.googleapis.com" />
1824+
placeholder="https://daily-cloudcode-pa.googleapis.com" />
18251825
<small style="display: block; color: #666; font-size: 12px; margin-top: 5px;">Google
18261826
Antigravity API端点地址,用于反重力模式</small>
18271827
</div>

0 commit comments

Comments
 (0)