leonai
f6d456cdb4
feat(kiro): 添加 AWS SSO 凭据导入和批量导入流式进度功能
...
1. 新增 checkKiroCredentialsDuplicate 函数用于检测重复凭据
2. 批量导入支持 SSE 流式响应实时显示进度
3. 新增 importAwsCredentials 函数支持 AWS Builder ID 模式导入
4. 前端新增 AWS 凭据导入模态框,支持文件上传和 JSON 粘贴两种模式
5. 添加中英文国际化翻译支持
2026-01-09 12:38:40 +08:00
何夕2077
c3b1adfb6e
Update VERSION
2026-01-09 00:31:30 +08:00
何夕2077
7ddbdd3355
Merge pull request #192 from kj1534/fix/antigravity-ignore-prompt
...
添加 [ignore] 标签让 AI 忽略 Antigravity 系统提示词
2026-01-08 23:46:11 +08:00
accx
54bdbc804c
添加 [ignore] 标签让 AI 忽略 Antigravity 系统提示词
2026-01-08 23:20:58 +08:00
何夕2077
acb0a1f30c
Merge pull request #191 from tickernelz/fix-get-model-claude-protocol
...
feat(converters): add display_name field to model list responses
2026-01-08 21:29:29 +08:00
Zhafron Kautsar
60161fd2bc
feat(converters): add display_name field to model list responses
...
Add display_name field to model list conversions across all converter strategies to improve model identification in API responses. ClaudeConverter and GeminiConverter now include display_name in their toOpenAIModelList methods, while OpenAIConverter adds ensureDisplayName method to guarantee the field exists for native OpenAI models.
2026-01-08 08:20:19 -05:00
何夕2077
3ac07f8c3c
Update VERSION
2026-01-08 20:34:44 +08:00
何夕2077
cf9afd1016
Merge pull request #188 from leonaii/main
...
feat(api-potluck): 添加 API 大锅饭插件功能(彩蛋)
2026-01-08 20:31:04 +08:00
leonai
dbc98dae74
feat(api-potluck): 添加 API 大锅饭插件功能(彩蛋)
...
1. 新增 api-potluck 模块,支持 API 密钥认证和用量记录
2. 在 request-handler.js 中集成大锅饭路由和认证中间件
3. 在 common.js 中添加用量记录调用逻辑
4. 新增 potluck.html 静态页面和配置文件 api-potluck-keys.json
2026-01-08 20:15:59 +08:00
何夕2077
deb261d068
Update VERSION
2026-01-08 18:23:16 +08:00
何夕2077
2002ad4a16
Merge pull request #185 from leonaii/main
...
feat(kiro): 添加批量导入refreshToken功能
2026-01-08 18:22:51 +08:00
leonai
9411d7d315
feat(kiro): 添加批量导入refreshToken功能
...
1. 新增refreshKiroToken函数用于刷新单个token
2. 新增batchImportKiroRefreshTokens函数支持批量导入
3. 添加/api/kiro/batch-import-tokens接口端点
4. 实现批量导入UI模态框及实时统计功能
5. 添加中英文国际化翻译支持
2026-01-08 18:16:26 +08:00
何夕2077
1af02dbba9
Update VERSION
2026-01-08 16:48:57 +08:00
hex2077
26e1da1470
fix: 修复system_instruction到systemInstruction的转换并修正回调URL变量名
...
确保在请求体中正确处理system_instruction到systemInstruction的转换,同时修正回调URL变量名从localUrl到url以匹配实际使用场景
2026-01-08 16:48:30 +08:00
何夕2077
ae5fc1f5f7
Update VERSION
2026-01-08 13:45:58 +08:00
hex2077
e5255a4972
feat(界面): 添加KIRO账号购买链接及样式
...
在控制台头部添加KIRO账号购买链接,并为其设计渐变背景和悬停效果
2026-01-08 13:45:34 +08:00
hex2077
c84ac7df3f
refactor(antigravity-core): 简化系统提示并改进系统指令处理逻辑
...
重构 ANTIGRAVITY_SYSTEM_PROMPT 使其更简洁
优化 ensureRolesInContents 函数以更好地处理不同模型的系统指令
2026-01-08 13:35:57 +08:00
何夕2077
d4e5a25c9d
Merge pull request #180 from tickernelz/fix-kiro-token-count
...
refactor(claude-kiro): improve token counting accuracy using API contextUsagePercentage
2026-01-08 12:54:59 +08:00
Zhafron Adani Kautsar
114ef64d05
Merge branch 'main' into fix-kiro-token-count
2026-01-07 23:51:02 -05:00
何夕2077
944e493f74
Update VERSION
2026-01-08 12:47:12 +08:00
hex2077
2828166b18
fix(api): 修复401/400错误时的认证刷新逻辑并优化模型处理
...
为API调用和流式请求添加401/400错误时的认证刷新重试机制
修改antigravity-core中ensureRolesInContents方法,仅对非图像模型设置systemInstruction
2026-01-08 12:46:25 +08:00
Zhafron Kautsar
89bc0ee6f8
refactor(claude-kiro): improve token counting accuracy using API contextUsagePercentage
...
Replace client-side token estimation with server-provided contextUsagePercentage
for accurate input token calculation. This eliminates discrepancies between
estimated and actual token counts by using the API's native context window
measurement.
Key changes:
- Add contextUsage event parsing in AWS Event Stream buffer
- Calculate input tokens from contextUsagePercentage in both streaming and
non-streaming responses
- Deprecate estimateInputTokens() method in favor of API-provided metrics
- Import CLAUDE_DEFAULT_MAX_TOKENS for context window calculations
- Add fallback error handling when contextUsagePercentage is not received
- Fix code formatting and whitespace consistency throughout the file
2026-01-07 23:39:07 -05:00
何夕2077
509e9b73a7
Merge pull request #179 from ZqinKing/main
...
修复 Antigravity 渠道对系统提示词的校验
2026-01-08 12:28:31 +08:00
ZqinKing
30d2215d09
修复 Antigravity 渠道对系统提示词的校验
...
详细修改内容:
1. 添加 ANTIGRAVITY_SYSTEM_PROMPT 常量,包含完整的身份描述和指南。
2. 在 geminiToAntigravity 函数中添加 requestType: 'agent' 字段。
3. 在 ensureRolesInContents 函数中强制设置系统提示词,覆盖用户配置。
4. 调整 Base URL 降级顺序,优先使用 Sandbox 环境。
2026-01-08 12:12:07 +08:00
何夕2077
ea2ae2169c
Update VERSION
2026-01-08 00:07:17 +08:00
何夕2077
f7669f2b41
Update VERSION
2026-01-08 00:05:21 +08:00
何夕2077
5d857832b6
Update VERSION
2026-01-07 23:57:17 +08:00
何夕2077
fc44b3751d
Update VERSION
2026-01-07 23:49:54 +08:00
hex2077
44d09d0713
feat(更新检查): 添加GitHub API和tarball更新支持
...
实现非Git环境下的更新检查功能,通过GitHub API获取最新版本信息。添加tarball下载更新方式,适用于Docker等非Git环境。优化更新流程,支持多种更新方式自动切换,并完善错误处理和日志记录。
2026-01-07 23:49:23 +08:00
何夕2077
071e81a09d
Update VERSION
2026-01-07 23:17:08 +08:00
hex2077
ddc9533f21
build(Dockerfile): 添加必要的系统工具并优化依赖安装
...
添加 tar 和 git 工具以支持更新功能和版本检查,同时保持 npm install 命令的简洁性
2026-01-07 23:16:42 +08:00
何夕2077
b640ea746b
Update VERSION
2026-01-07 23:03:36 +08:00
何夕2077
9168683ba8
Update VERSION
2026-01-07 23:00:08 +08:00
何夕2077
5d7a22e617
Update VERSION
2026-01-07 22:23:37 +08:00
hex2077
4edd0ce2a4
feat(错误处理): 添加网络错误重试机制并统一处理逻辑
...
在common.js中定义可重试网络错误列表和检查函数
修改各API服务(qwen/iflow/claude/gemini/openai/antigravity)调用逻辑
添加网络错误检测和指数退避重试机制
统一错误日志格式包含状态码和错误标识
2026-01-07 22:22:59 +08:00
何夕2077
8200712081
Update VERSION
2026-01-07 21:31:41 +08:00
hex2077
19a40c7fae
feat(iflow): 新增 iFlow CLI 支持及 OAuth 认证功能
...
添加 iFlow API 提供商支持,包括:
1. 新增 MODEL_PROVIDER.IFLOW_API 常量
2. 实现 IFlowApiService 和适配器
3. 添加 OAuth 认证流程及令牌刷新机制
4. 更新相关配置文件、路由和前端界面
5. 扩展多语言支持
6. 修改 Docker 端口映射范围以包含 iFlow 回调端口
2026-01-07 21:30:51 +08:00
何夕2077
671db3c34f
Update VERSION
2026-01-06 22:37:58 +08:00
hex2077
717acbb2f4
refactor(antigravity-core): 优化工具配置逻辑并清理代码
...
- 重构工具配置检查逻辑,避免创建空对象
- 移除已注释的maxOutputTokens处理代码
- 统一代码缩进格式
- 清理JSON Schema属性处理逻辑
2026-01-06 22:37:23 +08:00
何夕2077
ff8b5a01d2
Update VERSION
2026-01-06 21:27:20 +08:00
何夕2077
a8a1301da7
Merge pull request #172 from ZqinKing/main
...
feat: 在日志中添加凭证自定义名称(customName)以增强可读性
2026-01-06 21:27:00 +08:00
hex2077
4f4ca8ca0a
Merge branch 'main' of https://github.com/justlovemaki/AIClient-2-API
2026-01-06 21:25:00 +08:00
hex2077
01496aab8a
fix: 修复Claude模型禁用tools和跳过禁用节点健康检查
...
当模型是Claude时,禁止使用tools配置
在UI API请求处理中跳过已禁用节点的健康检查
2026-01-06 21:24:53 +08:00
ZqinKing
6ec76b0674
feat: 在日志中添加凭证自定义名称(customName)以增强可读性
2026-01-06 20:12:37 +08:00
何夕2077
af201b7a0c
Update VERSION
2026-01-06 18:16:08 +08:00
hex2077
8f39295655
feat: 改进错误处理、Ollama兼容性和文档结构
...
refactor(converters): 优化Claude到Gemini的转换逻辑
fix(kiro): 修复社交认证刷新问题
perf(ollama): 提升模型列表获取效率
docs: 为README添加可折叠区块
style: 清理控制台日志
2026-01-06 18:14:02 +08:00
何夕2077
bcc2f1eb59
Merge pull request #167 from ZqinKing/main
...
feat: add GitHub icon link in header before connection status
2026-01-05 20:42:53 +08:00
ZqinKing
2ad5bd03a4
feat: add GitHub icon link in header before connection status
2026-01-05 20:34:22 +08:00
何夕2077
ae4fd1ccb1
Merge pull request #162 from macdao/increase-usage-precision
...
[feat] increase antigravity usage precision to two decimal places
2026-01-05 00:10:12 +08:00
Xi Qi
cdb0c85051
[feat] increase antigravity usage precision to two decimal places
2026-01-04 22:34:01 +08:00