fix(antigravity): 修复频繁出现429错误的问题

This commit is contained in:
shaw
2026-01-08 20:05:55 +08:00
parent 3fb43b91bf
commit b015a3bd8a
2 changed files with 375 additions and 46 deletions

View File

@@ -149,6 +149,11 @@ func defaultIdentityPatch(_ string) string {
return antigravityIdentity
}
// GetDefaultIdentityPatch 返回默认的 Antigravity 身份提示词
func GetDefaultIdentityPatch() string {
return antigravityIdentity
}
// buildSystemInstruction 构建 systemInstruction
func buildSystemInstruction(system json.RawMessage, modelName string, opts TransformOptions) *GeminiContent {
var parts []GeminiPart