[PR #179] [MERGED] 修复 Antigravity 渠道对系统提示词的校验 #285

Closed
opened 2026-02-27 07:18:49 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/justlovemaki/AIClient-2-API/pull/179
Author: @ZqinKing
Created: 1/8/2026
Status: Merged
Merged: 1/8/2026
Merged by: @justlovemaki

Base: mainHead: main


📝 Commits (1)

  • b47038f 修复 Antigravity 渠道对系统提示词的校验

📊 Changes

1 file changed (+88 additions, -5 deletions)

View changed files

📝 src/gemini/antigravity-core.js (+88 -5)

📄 Description

详细修改内容:

  1. 添加 ANTIGRAVITY_SYSTEM_PROMPT 常量,包含完整的身份描述和指南。
  2. 在 geminiToAntigravity 函数中添加 requestType: 'agent' 字段。
  3. 在 ensureRolesInContents 函数中强制设置系统提示词,覆盖用户配置。
  4. 调整 Base URL 降级顺序,优先使用 Sandbox 环境。

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/justlovemaki/AIClient-2-API/pull/179 **Author:** [@ZqinKing](https://github.com/ZqinKing) **Created:** 1/8/2026 **Status:** ✅ Merged **Merged:** 1/8/2026 **Merged by:** [@justlovemaki](https://github.com/justlovemaki) **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (1) - [`b47038f`](https://github.com/justlovemaki/AIClient-2-API/commit/b47038f902a6cded33cf29b1bdd8bb2b78f93b83) 修复 Antigravity 渠道对系统提示词的校验 ### 📊 Changes **1 file changed** (+88 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `src/gemini/antigravity-core.js` (+88 -5) </details> ### 📄 Description 详细修改内容: 1. 添加 ANTIGRAVITY_SYSTEM_PROMPT 常量,包含完整的身份描述和指南。 2. 在 geminiToAntigravity 函数中添加 requestType: 'agent' 字段。 3. 在 ensureRolesInContents 函数中强制设置系统提示词,覆盖用户配置。 4. 调整 Base URL 降级顺序,优先使用 Sandbox 环境。 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 07:18:49 +03:00
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/AIClient-2-API-justlovemaki#285
No description provided.