Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
261 commits
Select commit Hold shift + click to select a range
6b6de46
chore: update version.txt [skip ci]
github-actions[bot] Jan 10, 2026
0e8e183
Update gemini_fix.py
su-kaka Jan 10, 2026
ace021f
chore: update version.txt [skip ci]
github-actions[bot] Jan 10, 2026
7532201
限制范围和模型名字处理
su-kaka Jan 10, 2026
8ff9f36
chore: update version.txt [skip ci]
github-actions[bot] Jan 10, 2026
400e756
Update gemini_fix.py
su-kaka Jan 10, 2026
cce5c2a
Merge branch 'master' of https://github.com/su-kaka/gcli2api
su-kaka Jan 10, 2026
e4eaa84
chore: update version.txt [skip ci]
github-actions[bot] Jan 10, 2026
cef1f04
修复claude code调用工具不进行的问题
su-kaka Jan 10, 2026
f754b7d
Merge branch 'master' of https://github.com/su-kaka/gcli2api
su-kaka Jan 10, 2026
3526f71
增加更多日志
su-kaka Jan 10, 2026
d499b8f
chore: update version.txt [skip ci]
github-actions[bot] Jan 10, 2026
3824007
Update gemini_fix.py
su-kaka Jan 10, 2026
f181594
Merge branch 'master' of https://github.com/su-kaka/gcli2api
su-kaka Jan 10, 2026
b4ceb92
chore: update version.txt [skip ci]
github-actions[bot] Jan 10, 2026
f966035
清理空parts
su-kaka Jan 10, 2026
be9c97d
Merge branch 'master' of https://github.com/su-kaka/gcli2api
su-kaka Jan 10, 2026
eac7efc
chore: update version.txt [skip ci]
github-actions[bot] Jan 10, 2026
f541beb
Update openai2gemini.py
su-kaka Jan 10, 2026
a1388e1
修复流式抗截断模型
su-kaka Jan 10, 2026
9148d42
chore: update version.txt [skip ci]
github-actions[bot] Jan 10, 2026
3a5fc86
Update anti_truncation.py
su-kaka Jan 10, 2026
63eb608
Merge branch 'master' of https://github.com/su-kaka/gcli2api
su-kaka Jan 10, 2026
490947e
修复gemini的流式抗截断
su-kaka Jan 10, 2026
cdcd888
chore: update version.txt [skip ci]
github-actions[bot] Jan 10, 2026
5790991
Update gemini_fix.py
su-kaka Jan 11, 2026
a9ffe3a
Merge branch 'master' of https://github.com/su-kaka/gcli2api
su-kaka Jan 11, 2026
582e27f
chore: update version.txt [skip ci]
github-actions[bot] Jan 11, 2026
c1b17c0
Update gemini_fix.py
su-kaka Jan 11, 2026
4390209
Merge branch 'master' of https://github.com/su-kaka/gcli2api
su-kaka Jan 11, 2026
160ba33
chore: update version.txt [skip ci]
github-actions[bot] Jan 11, 2026
8c0b248
Update utils.py
su-kaka Jan 11, 2026
51045cb
Merge branch 'master' of https://github.com/su-kaka/gcli2api
su-kaka Jan 11, 2026
427e42f
chore: update version.txt [skip ci]
github-actions[bot] Jan 11, 2026
74f759c
Update gemini_fix.py
su-kaka Jan 11, 2026
414abd1
chore: update version.txt [skip ci]
github-actions[bot] Jan 11, 2026
0a656a7
增加最后消息的校验
su-kaka Jan 11, 2026
18e2484
Merge branch 'master' of https://github.com/su-kaka/gcli2api
su-kaka Jan 11, 2026
010b33c
chore: update version.txt [skip ci]
github-actions[bot] Jan 11, 2026
d5668fe
白名单字段
su-kaka Jan 11, 2026
1dbd7bf
Merge branch 'master' of https://github.com/su-kaka/gcli2api
su-kaka Jan 11, 2026
c0e1f13
chore: update version.txt [skip ci]
github-actions[bot] Jan 11, 2026
534c2df
Update openai2gemini.py
su-kaka Jan 11, 2026
196ab81
Merge branch 'master' of https://github.com/su-kaka/gcli2api
su-kaka Jan 11, 2026
8928d04
chore: update version.txt [skip ci]
github-actions[bot] Jan 11, 2026
d62e68f
Update utils.py
su-kaka Jan 11, 2026
7e8afa2
Merge branch 'master' of https://github.com/su-kaka/gcli2api
su-kaka Jan 11, 2026
9d6b294
chore: update version.txt [skip ci]
github-actions[bot] Jan 11, 2026
ea6b6f4
修正格式转换
su-kaka Jan 11, 2026
b263b98
chore: update version.txt [skip ci]
github-actions[bot] Jan 11, 2026
bd3ff2a
Update utils.py
su-kaka Jan 11, 2026
d0ba30f
Merge branch 'master' of https://github.com/su-kaka/gcli2api
su-kaka Jan 11, 2026
b4237ac
chore: update version.txt [skip ci]
github-actions[bot] Jan 11, 2026
51041fd
claude路由增加token计数
su-kaka Jan 11, 2026
f4e03dc
chore: update version.txt [skip ci]
github-actions[bot] Jan 11, 2026
cfb439e
非流式解包
su-kaka Jan 11, 2026
1bc2c41
chore: update version.txt [skip ci]
github-actions[bot] Jan 11, 2026
437660b
增加tool_choice
su-kaka Jan 11, 2026
26b0506
Merge branch 'master' of https://github.com/su-kaka/gcli2api
su-kaka Jan 11, 2026
f23ac10
chore: update version.txt [skip ci]
github-actions[bot] Jan 11, 2026
d41cad9
修正重试逻辑
su-kaka Jan 11, 2026
acfc5ba
chore: update version.txt [skip ci]
github-actions[bot] Jan 11, 2026
a0090dc
修正gemini格式mcp无限调用的问题
su-kaka Jan 11, 2026
025d801
Merge branch 'master' of https://github.com/su-kaka/gcli2api
su-kaka Jan 11, 2026
9a507ed
chore: update version.txt [skip ci]
github-actions[bot] Jan 11, 2026
6e18226
Update gemini_fix.py
su-kaka Jan 11, 2026
b0b5506
chore: update version.txt [skip ci]
github-actions[bot] Jan 11, 2026
74ac3de
Update gemini_fix.py
su-kaka Jan 11, 2026
a6c63e1
chore: update version.txt [skip ci]
github-actions[bot] Jan 11, 2026
59e0eda
Update gemini_fix.py
su-kaka Jan 11, 2026
9d41aa1
Merge branch 'master' of https://github.com/su-kaka/gcli2api
su-kaka Jan 11, 2026
c2f181d
Update gemini_fix.py
su-kaka Jan 11, 2026
e2fc2d8
chore: update version.txt [skip ci]
github-actions[bot] Jan 11, 2026
deae390
Update models.py
su-kaka Jan 11, 2026
6abbd2b
chore: update version.txt [skip ci]
github-actions[bot] Jan 11, 2026
1d4d23a
Update gemini_fix.py
su-kaka Jan 11, 2026
0a34396
Update gemini_fix.py
su-kaka Jan 11, 2026
01587d9
Update anthropic2gemini.py
su-kaka Jan 11, 2026
1548cfb
chore: update version.txt [skip ci]
github-actions[bot] Jan 11, 2026
ec6f647
Update antigravity.py
su-kaka Jan 11, 2026
c991b85
Merge branch 'master' of https://github.com/su-kaka/gcli2api
su-kaka Jan 11, 2026
dfad936
chore: update version.txt [skip ci]
github-actions[bot] Jan 11, 2026
a6d2066
Update gemini_fix.py
su-kaka Jan 12, 2026
d4b7a49
Merge branch 'master' of https://github.com/su-kaka/gcli2api
su-kaka Jan 12, 2026
8ac2f53
chore: update version.txt [skip ci]
github-actions[bot] Jan 12, 2026
511bbca
修复循环
su-kaka Jan 12, 2026
2a9ad90
Merge branch 'master' of https://github.com/su-kaka/gcli2api
su-kaka Jan 12, 2026
d01c352
chore: update version.txt [skip ci]
github-actions[bot] Jan 12, 2026
3c5303c
Update gemini_fix.py
su-kaka Jan 12, 2026
d48686e
Merge branch 'master' of https://github.com/su-kaka/gcli2api
su-kaka Jan 12, 2026
0143008
chore: update version.txt [skip ci]
github-actions[bot] Jan 12, 2026
342abaa
Update gemini_fix.py
su-kaka Jan 12, 2026
cf5a378
chore: update version.txt [skip ci]
github-actions[bot] Jan 12, 2026
6bd8437
Update anthropic2gemini.py
su-kaka Jan 12, 2026
db4549e
chore: update version.txt [skip ci]
github-actions[bot] Jan 12, 2026
ca8e01f
Update credential_manager.py
su-kaka Jan 12, 2026
353f5d4
Merge branch 'master' of https://github.com/su-kaka/gcli2api
su-kaka Jan 12, 2026
aa4fe03
全局单列凭证管理器
su-kaka Jan 12, 2026
8101d14
路径
su-kaka Jan 12, 2026
fa5a928
chore: update version.txt [skip ci]
github-actions[bot] Jan 12, 2026
0cf601f
规范化命名
su-kaka Jan 12, 2026
2e50b8e
Update README.md
su-kaka Jan 12, 2026
f54939d
日志加上安全验证
su-kaka Jan 12, 2026
b9c9099
Merge branch 'master' of https://github.com/su-kaka/gcli2api
su-kaka Jan 12, 2026
e4cc801
Update anthropic.py
su-kaka Jan 12, 2026
04942c3
chore: update version.txt [skip ci]
github-actions[bot] Jan 12, 2026
0fc9540
简化日志
su-kaka Jan 12, 2026
ee562f3
Merge branch 'master' of https://github.com/su-kaka/gcli2api
su-kaka Jan 12, 2026
b01e36d
添加issue模板
su-kaka Jan 12, 2026
4c09c94
chore: update version.txt [skip ci]
github-actions[bot] Jan 12, 2026
ef8d8c8
Update openai2gemini.py
su-kaka Jan 12, 2026
c84645b
Merge branch 'master' of https://github.com/su-kaka/gcli2api
su-kaka Jan 12, 2026
9058f76
chore: update version.txt [skip ci]
github-actions[bot] Jan 12, 2026
b70e3cc
Update gemini_fix.py
su-kaka Jan 12, 2026
54846e7
chore: update version.txt [skip ci]
github-actions[bot] Jan 12, 2026
6413fc6
Update httpx_client.py
su-kaka Jan 12, 2026
a597132
chore: update version.txt [skip ci]
github-actions[bot] Jan 12, 2026
8870324
Update gemini_fix.py
su-kaka Jan 13, 2026
5e87824
chore: update version.txt [skip ci]
github-actions[bot] Jan 13, 2026
c25a637
认证支持更多字段
su-kaka Jan 13, 2026
e37ba02
chore: update version.txt [skip ci]
github-actions[bot] Jan 13, 2026
40b9b1e
Update antigravity.py
su-kaka Jan 13, 2026
fb33771
fix: use actual token counts in message_start event
sycghj Jan 13, 2026
0f3dc6e
py313
su-kaka Jan 13, 2026
d6f6983
chore: update version.txt [skip ci]
github-actions[bot] Jan 13, 2026
472f00f
Update openai2gemini.py
su-kaka Jan 13, 2026
e541f84
Merge pull request #276 from sycghj/fix/message-start-usage-hardcoded
su-kaka Jan 13, 2026
9164458
chore: update version.txt [skip ci]
github-actions[bot] Jan 13, 2026
3701434
Merge branch 'master' of https://github.com/su-kaka/gcli2api
su-kaka Jan 13, 2026
494f2af
Update termux-install.sh
su-kaka Jan 13, 2026
f3d5979
chore: update version.txt [skip ci]
github-actions[bot] Jan 13, 2026
963aa6c
解决termux安装问题
su-kaka Jan 13, 2026
d73378a
chore: update version.txt [skip ci]
github-actions[bot] Jan 13, 2026
8a3a1be
Update termux-install.sh
su-kaka Jan 13, 2026
5b85657
Update termux-install.sh
su-kaka Jan 13, 2026
8d9bd12
Merge branch 'master' of https://github.com/su-kaka/gcli2api
su-kaka Jan 13, 2026
aa09ed6
chore: update version.txt [skip ci]
github-actions[bot] Jan 13, 2026
81ece78
Update pyproject.toml
su-kaka Jan 13, 2026
e6054d5
chore: update version.txt [skip ci]
github-actions[bot] Jan 13, 2026
897efa8
Update openai2gemini.py
su-kaka Jan 14, 2026
98e762a
Merge branch 'master' of https://github.com/su-kaka/gcli2api
su-kaka Jan 14, 2026
a7ceb13
chore: update version.txt [skip ci]
github-actions[bot] Jan 14, 2026
ca3f07d
Update gemini_fix.py
su-kaka Jan 14, 2026
8be565c
chore: update version.txt [skip ci]
github-actions[bot] Jan 14, 2026
abd4a3e
Revert "Update gemini_fix.py"
su-kaka Jan 14, 2026
38fa4f6
Merge branch 'master' of https://github.com/su-kaka/gcli2api
su-kaka Jan 14, 2026
d097562
chore: update version.txt [skip ci]
github-actions[bot] Jan 14, 2026
74d2163
Update gemini_fix.py
su-kaka Jan 14, 2026
f85b19e
Merge branch 'master' of https://github.com/su-kaka/gcli2api
su-kaka Jan 14, 2026
c7555a3
chore: update version.txt [skip ci]
github-actions[bot] Jan 14, 2026
553a525
Update gemini_fix.py
su-kaka Jan 14, 2026
430756d
chore: update version.txt [skip ci]
github-actions[bot] Jan 14, 2026
36d7cee
Update gemini_fix.py
su-kaka Jan 14, 2026
ff995a9
chore: update version.txt [skip ci]
github-actions[bot] Jan 14, 2026
160294d
优化重试速度
su-kaka Jan 14, 2026
4528b34
chore: update version.txt [skip ci]
github-actions[bot] Jan 14, 2026
16e3036
fix: stream collector 保留 functionCall/functionResponse
Jan 15, 2026
b687998
Merge pull request #284 from MIKUSCAT/fix/stream-collector-tool-calls
su-kaka Jan 15, 2026
fb09b68
chore: update version.txt [skip ci]
github-actions[bot] Jan 15, 2026
c5ee730
当没有获取到思考签名时进行填充
su-kaka Jan 15, 2026
0c0f7e2
Merge branch 'master' of https://github.com/su-kaka/gcli2api
su-kaka Jan 15, 2026
d6eb88a
chore: update version.txt [skip ci]
github-actions[bot] Jan 15, 2026
5210dfe
Revert "fix: stream collector 保留 functionCall/functionResponse"
su-kaka Jan 15, 2026
6da5f34
chore: update version.txt [skip ci]
github-actions[bot] Jan 15, 2026
a73f272
让claude格式工具调用更好
su-kaka Jan 15, 2026
2c59dd6
chore: update version.txt [skip ci]
github-actions[bot] Jan 15, 2026
afc3708
Update gemini_fix.py
su-kaka Jan 15, 2026
8465616
fix: remove thinkingLevel when thinkingBudget is set to avoid 400 error
Dongmayyys Jan 17, 2026
abcd1af
Merge pull request #291 from Dongmayyys/fix/thinking-budget-level-con…
su-kaka Jan 17, 2026
3ba35ac
chore: update version.txt [skip ci]
github-actions[bot] Jan 17, 2026
7f8622f
Merge branch 'master' of https://github.com/su-kaka/gcli2api
su-kaka Jan 18, 2026
f4dad6b
chore: update version.txt [skip ci]
github-actions[bot] Jan 18, 2026
0ea47d1
新的思考后缀
su-kaka Jan 18, 2026
a35d3eb
Merge branch 'master' of https://github.com/su-kaka/gcli2api
su-kaka Jan 18, 2026
2fcdd13
chore: update version.txt [skip ci]
github-actions[bot] Jan 18, 2026
f008b37
Update openai2gemini.py
su-kaka Jan 18, 2026
50e970e
chore: update version.txt [skip ci]
github-actions[bot] Jan 18, 2026
90479e0
Update gemini_fix.py
su-kaka Jan 18, 2026
3fd08b8
Merge branch 'master' of https://github.com/su-kaka/gcli2api
su-kaka Jan 18, 2026
76e7034
Update gemini_fix.py
su-kaka Jan 18, 2026
7b7eaca
chore: update version.txt [skip ci]
github-actions[bot] Jan 18, 2026
85457f4
更新 gemini_fix.py
su-kaka Jan 18, 2026
3aa3c94
chore: update version.txt [skip ci]
github-actions[bot] Jan 18, 2026
1e653dc
Update README.md
su-kaka Jan 20, 2026
3ea52f6
Update README_EN.md
su-kaka Jan 20, 2026
cfebe20
Merge branch 'master' of https://github.com/su-kaka/gcli2api
su-kaka Jan 20, 2026
fcea29a
chore: update version.txt [skip ci]
github-actions[bot] Jan 20, 2026
ea0b99a
Update web.py
su-kaka Jan 20, 2026
6672760
Update web.py
su-kaka Jan 20, 2026
e9288ce
Merge branch 'master' of https://github.com/su-kaka/gcli2api
su-kaka Jan 21, 2026
1b36300
Update geminicli.py
su-kaka Jan 22, 2026
0301375
chore: update version.txt [skip ci]
github-actions[bot] Jan 22, 2026
9e471ee
Update gemini_fix.py
su-kaka Jan 23, 2026
0f8f4a9
chore: update version.txt [skip ci]
github-actions[bot] Jan 23, 2026
71a0457
503重试
su-kaka Jan 24, 2026
a2411a1
chore: update version.txt [skip ci]
github-actions[bot] Jan 24, 2026
d4ec2ae
Update gemini_fix.py
su-kaka Jan 24, 2026
c92c834
chore: update version.txt [skip ci]
github-actions[bot] Jan 24, 2026
d6d1fde
503重试修正
su-kaka Jan 25, 2026
b437ce3
Merge branch 'master' of https://github.com/su-kaka/gcli2api
su-kaka Jan 25, 2026
aa2c7cf
chore: update version.txt [skip ci]
github-actions[bot] Jan 25, 2026
0a641c4
Update mongodb_manager.py
su-kaka Jan 27, 2026
fd869d5
chore: update version.txt [skip ci]
github-actions[bot] Jan 27, 2026
8bdafeb
fix: 修复多工具并发调用时 Gemini API 报 function response parts mismatch 错误
leik1000 Jan 29, 2026
0b0e0ee
Update utils.py
su-kaka Jan 30, 2026
229d8bc
chore: update version.txt [skip ci]
github-actions[bot] Jan 30, 2026
5aa2d95
Merge pull request #304 from leik1000/master
su-kaka Jan 30, 2026
9b971c6
chore: update version.txt [skip ci]
github-actions[bot] Jan 30, 2026
45f43f0
支持保存和查看错误消息
su-kaka Jan 31, 2026
9492c73
Merge branch 'master' of https://github.com/su-kaka/gcli2api
su-kaka Jan 31, 2026
15c548d
chore: update version.txt [skip ci]
github-actions[bot] Jan 31, 2026
90cce50
增加消息测试按钮
su-kaka Jan 31, 2026
456005b
Merge branch 'master' of https://github.com/su-kaka/gcli2api
su-kaka Jan 31, 2026
1b7ea2f
chore: update version.txt [skip ci]
github-actions[bot] Jan 31, 2026
b690497
错误消息保存修复
su-kaka Jan 31, 2026
fcdd886
chore: update version.txt [skip ci]
github-actions[bot] Jan 31, 2026
54bbf76
修正消息测试
su-kaka Jan 31, 2026
935ab9e
chore: update version.txt [skip ci]
github-actions[bot] Jan 31, 2026
2b40600
Update credential_manager.py
su-kaka Jan 31, 2026
8a48566
Merge branch 'master' of https://github.com/su-kaka/gcli2api
su-kaka Jan 31, 2026
7c9734a
增加preview可用性字段
su-kaka Feb 1, 2026
310bce4
chore: update version.txt [skip ci]
github-actions[bot] Feb 1, 2026
6641f21
Update mongodb_manager.py
su-kaka Feb 1, 2026
630da4e
Update utils.py
su-kaka Feb 1, 2026
a614ade
增加preview筛选项
su-kaka Feb 1, 2026
927415e
Merge branch 'master' of https://github.com/su-kaka/gcli2api
su-kaka Feb 1, 2026
f69a2d6
chore: update version.txt [skip ci]
github-actions[bot] Feb 1, 2026
b3a0f00
Update utils.py
su-kaka Feb 1, 2026
aa32ee2
Merge branch 'master' of https://github.com/su-kaka/gcli2api
su-kaka Feb 1, 2026
486b12a
chore: update version.txt [skip ci]
github-actions[bot] Feb 1, 2026
e99398f
Update mongodb_manager.py
su-kaka Feb 1, 2026
310618f
chore: update version.txt [skip ci]
github-actions[bot] Feb 1, 2026
8bfe4b2
Update mongodb_manager.py
su-kaka Feb 1, 2026
488a836
chore: update version.txt [skip ci]
github-actions[bot] Feb 1, 2026
43ee4d8
规范化命名
su-kaka Feb 1, 2026
b8d00f7
优化筛选逻辑
su-kaka Feb 1, 2026
e651c56
Merge branch 'master' of https://github.com/su-kaka/gcli2api
su-kaka Feb 1, 2026
5f5325c
chore: update version.txt [skip ci]
github-actions[bot] Feb 1, 2026
1104079
Update mongodb_manager.py
su-kaka Feb 1, 2026
2bbcd0f
chore: update version.txt [skip ci]
github-actions[bot] Feb 1, 2026
8d91633
设置preview通道功能
su-kaka Feb 1, 2026
3b62221
chore: update version.txt [skip ci]
github-actions[bot] Feb 1, 2026
fa9011d
支持批量设置预览
su-kaka Feb 1, 2026
ed1cc68
Merge branch 'master' of https://github.com/su-kaka/gcli2api
su-kaka Feb 1, 2026
abf1f36
chore: update version.txt [skip ci]
github-actions[bot] Feb 1, 2026
93d788f
消息测试增加详细报错信息
su-kaka Feb 2, 2026
155d2ba
chore: update version.txt [skip ci]
github-actions[bot] Feb 2, 2026
030ea23
修改所有数据库操作,确保始终使用 basename 进行存储和查询
su-kaka Feb 3, 2026
65b9b34
chore: update version.txt [skip ci]
github-actions[bot] Feb 3, 2026
6d08be7
feat: 添加夜间模式功能及相关样式
SilenceLurker Feb 4, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
92 changes: 92 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
name: Bug 报告
description: 报告项目使用中遇到的问题
title: "[Bug]: "
labels: ["bug", "待处理"]
body:
- type: markdown
attributes:
value: |
## 感谢你的反馈!
请填写以下信息以帮助我们更快定位问题。

- type: checkboxes
id: checklist
attributes:
label: 提交前确认
options:
- label: 我已经搜索过现有的 issues,确认这不是重复问题
required: true
- label: 我已经阅读过项目文档
required: true

- type: dropdown
id: latest-version
attributes:
label: 是否是最新版
description: 请确认你使用的是否是最新版本
options:
- 是,使用最新版
- 否,使用旧版本
validations:
required: true

- type: input
id: channel
attributes:
label: 调用的是哪个渠道
description: 例如 geminicli 或者 antigravity
placeholder: "例如: geminicli"
validations:
required: true

- type: input
id: model
attributes:
label: 调用的是哪个模型
description: 例如 gemini-2.5-flash
placeholder: "例如: gemini-2.5-flash"
validations:
required: true

- type: dropdown
id: format
attributes:
label: 调用的是哪个格式
description: 选择你使用的 API 格式
options:
- gemini 格式
- openai 格式
- claude 格式
- 其他格式
validations:
required: true

- type: textarea
id: error-content
attributes:
label: 具体报错内容
description: 请粘贴完整的错误信息或截图
placeholder: |
请在这里粘贴完整的错误日志或堆栈信息
render: shell
validations:
required: true

- type: textarea
id: error-description
attributes:
label: 错误描述
description: 详细描述问题的发生场景、预期行为和实际行为
placeholder: |
1. 我在做什么操作时遇到了这个问题
2. 我期望的结果是...
3. 但实际上发生了...
validations:
required: true

- type: textarea
id: additional-context
attributes:
label: 补充信息(可选)
description: 其他任何有助于解决问题的信息
placeholder: 例如:操作系统、Python 版本、相关配置等
8 changes: 8 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
blank_issues_enabled: false
contact_links:
- name: 使用问题讨论
url: https://github.com/su-kaka/gcli2api/issues
about: 如果是使用方面的问题,请在 issues 中提问
- name: 项目文档
url: https://github.com/su-kaka/gcli2api
about: 查看完整文档和使用指南
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ GEMINI.md

# Python
uv.lock
.python-version
__pycache__/
*.py[cod]
*$py.class
Expand Down
1 change: 0 additions & 1 deletion .python-version

This file was deleted.

63 changes: 24 additions & 39 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -319,15 +319,15 @@ ghcr.io/su-kaka/gcli2api:latest

## ⚠️ 注意事项

- 当前 OAuth 验证流程**仅支持本地主机(localhost)访问**,即须通过 `http://127.0.0.1:7861/auth` 完成认证(默认端口 7861,可通过 PORT 环境变量修改)。
- 当前 OAuth 验证流程**仅支持本地主机(localhost)访问**,即须通过 `http://127.0.0.1:7861` 完成认证(默认端口 7861,可通过 PORT 环境变量修改)。
- **如需在云服务器或其他远程环境部署,请先在本地运行服务并完成 OAuth 验证,获得生成的 json 凭证文件(位于 `./geminicli/creds` 目录)后,再在auth面板将该文件上传即可。**
- **请严格遵守使用限制,仅用于个人学习和非商业用途**

---

## 配置说明

1. 访问 `http://127.0.0.1:7861/auth` (默认端口,可通过 PORT 环境变量修改)
1. 访问 `http://127.0.0.1:7861` (默认端口,可通过 PORT 环境变量修改)
2. 完成 OAuth 认证流程(默认密码:`pwd`,可通过环境变量修改)
- **GCLI 模式**:用于获取 Google Cloud Gemini API 凭证
- **Antigravity 模式**:用于获取 Google Antigravity API 凭证
Expand Down Expand Up @@ -833,51 +833,36 @@ for part in response.candidates[0].content.parts:

**认证端点**
- `POST /auth/login` - 用户登录
- `POST /auth/start` - 开始 GCLI OAuth 认证
- `POST /auth/antigravity/start` - 开始 Antigravity OAuth 认证
- `POST /auth/start` - 开始 OAuth 认证(支持 GCLI 和 Antigravity 模式)
- `POST /auth/callback` - 处理 OAuth 回调
- `POST /auth/callback-url` - 从回调 URL 直接完成认证
- `GET /auth/status/{project_id}` - 检查认证状态
- `GET /auth/antigravity/credentials` - 获取 Antigravity 凭证

**GCLI 凭证管理端点**
- `GET /creds/status` - 获取所有 GCLI 凭证状态
- `POST /creds/action` - 单个 GCLI 凭证操作(启用/禁用/删除)
- `POST /creds/batch-action` - 批量 GCLI 凭证操作
- `POST /auth/upload` - 批量上传 GCLI 凭证文件(支持 ZIP)
- `GET /creds/download/{filename}` - 下载 GCLI 凭证文件
- `GET /creds/download-all` - 打包下载所有 GCLI 凭证
- `POST /creds/fetch-email/{filename}` - 获取 GCLI 用户邮箱
- `POST /creds/refresh-all-emails` - 批量刷新 GCLI 用户邮箱

**Antigravity 凭证管理端点**
- `GET /antigravity/creds/status` - 获取所有 Antigravity 凭证状态
- `POST /antigravity/creds/action` - 单个 Antigravity 凭证操作(启用/禁用/删除)
- `POST /antigravity/creds/batch-action` - 批量 Antigravity 凭证操作
- `POST /antigravity/auth/upload` - 批量上传 Antigravity 凭证文件(支持 ZIP)
- `GET /antigravity/creds/download/{filename}` - 下载 Antigravity 凭证文件
- `GET /antigravity/creds/download-all` - 打包下载所有 Antigravity 凭证
- `POST /antigravity/creds/fetch-email/{filename}` - 获取 Antigravity 用户邮箱
- `POST /antigravity/creds/refresh-all-emails` - 批量刷新 Antigravity 用户邮箱

**凭证管理端点**(支持 `mode=geminicli` 或 `mode=antigravity` 参数)
- `POST /creds/upload` - 批量上传凭证文件(支持 JSON 和 ZIP)
- `GET /creds/status` - 获取凭证状态列表(支持分页和筛选)
- `GET /creds/detail/{filename}` - 获取单个凭证详情
- `POST /creds/action` - 单个凭证操作(启用/禁用/删除)
- `POST /creds/batch-action` - 批量凭证操作
- `GET /creds/download/{filename}` - 下载单个凭证文件
- `GET /creds/download-all` - 打包下载所有凭证
- `POST /creds/fetch-email/{filename}` - 获取用户邮箱
- `POST /creds/refresh-all-emails` - 批量刷新用户邮箱
- `POST /creds/deduplicate-by-email` - 按邮箱去重凭证
- `POST /creds/verify-project/{filename}` - 检验凭证 Project ID
- `GET /creds/quota/{filename}` - 获取凭证额度信息(仅 Antigravity)

**配置管理端点**
- `GET /config/get` - 获取当前配置
- `POST /config/save` - 保存配置

**环境变量凭证端点**
- `POST /auth/load-env-creds` - 加载环境变量凭证
- `DELETE /auth/env-creds` - 清除环境变量凭证
- `GET /auth/env-creds-status` - 获取环境变量凭证状态

**日志管理端点**
- `POST /auth/logs/clear` - 清空日志
- `GET /auth/logs/download` - 下载日志文件
- `WebSocket /auth/logs/stream` - 实时日志流

**使用统计端点**
- `GET /usage/stats` - 获取使用统计
- `GET /usage/aggregated` - 获取聚合统计
- `POST /usage/update-limits` - 更新使用限制
- `POST /usage/reset` - 重置使用统计
- `POST /logs/clear` - 清空日志
- `GET /logs/download` - 下载日志文件
- `WebSocket /logs/stream` - 实时日志流

**版本信息端点**
- `GET /version/info` - 获取版本信息(可选 `check_update=true` 参数检查更新)

### 聊天 API 功能特性

Expand Down
4 changes: 2 additions & 2 deletions docs/README_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -282,15 +282,15 @@ docker run -d --name gcli2api --network host -e API_PASSWORD=api_pwd -e PANEL_PA

## ⚠️ Important Notes

- The current OAuth authentication process **only supports localhost access**, meaning authentication must be completed through `http://127.0.0.1:7861/auth` (default port 7861, modifiable via PORT environment variable).
- The current OAuth authentication process **only supports localhost access**, meaning authentication must be completed through `http://127.0.0.1:7861/` (default port 7861, modifiable via PORT environment variable).
- **For deployment on cloud servers or other remote environments, please first run the service locally and complete OAuth authentication to obtain the generated json credential files (located in the `./geminicli/creds` directory), then upload these files via the auth panel.**
- **Please strictly comply with usage restrictions, only for personal learning and non-commercial purposes**

---

## Configuration Instructions

1. Visit `http://127.0.0.1:7861/auth` (default port, modifiable via PORT environment variable)
1. Visit `http://127.0.0.1:7861/` (default port, modifiable via PORT environment variable)
2. Complete OAuth authentication flow (default password: `pwd`, modifiable via environment variables)
- **GCLI Mode**: For obtaining Google Cloud Gemini API credentials
- **Antigravity Mode**: For obtaining Google Antigravity API credentials
Expand Down
Loading