mirror of
https://github.com/justlovemaki/AIClient-2-API.git
synced 2026-04-25 01:16:01 +03:00
[GH-ISSUE #340] gemini-cli-oauth和claude-kiro-oauth似乎没有完整兼容openai的协议 #241
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/AIClient-2-API-justlovemaki#241
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @hb-0 on GitHub (Feb 26, 2026).
Original GitHub issue: https://github.com/justlovemaki/AIClient-2-API/issues/340
在autogen、nanobot中会出错,如:
nanobot Sorry, I encountered an error: expected string or bytes-like object, got 'list'但在opencode、cherry studio中可以使用
@justlovemaki commented on GitHub (Feb 26, 2026):
#128
@hb-0 commented on GitHub (Feb 26, 2026):
环境信息 (Environment):
aiclient2api部署在arm架构linux上
使用api的机器为mac 苹果芯片
复现步骤 (Steps to Reproduce):
autogen中出错:
运行以下代码:
环境变量:PYTHONUNBUFFERED=1;OPENAI_API_KEY=xxx;OPENAI_BASE_URL=http://xxx:3000/claude-kiro-oauth/v1
pyproject.toml:
现象描述 (Symptoms, not Guesses):
报错如下:
你做过的尝试:
本来在Opencode中使用也是不行的,但偶然间将api key留空,在header中添加Authorization: Bearer xxxx,突然就可以了。
PS:代码中如果是model="gpt-5.3-codex",就会报:
@hb-0 commented on GitHub (Feb 27, 2026):
代码改为如下后:
不报authentication_error了,但报: