Conversation
|
现在glm也可以正常接入这个智能体了! |
|
推荐使用国内网络,如果用的是国内的模型 |
GenericAgent China-Stability Fork中文说明这个分支的目标很直接: 让 它不是对原项目的大改版,也不是推倒重来,而是一次非常务实的稳定性增强。 这个分支解决了什么1. 工具调用更稳定这个分支重点加固了 Agent 的工具调用链,减少模型出现以下问题的概率:
实际效果就是:
2. 更适合 OpenAI 兼容接口这个分支改进了 OpenAI 兼容请求路径,尤其适合中国可用的兼容端点。 包括:
这对使用替代 provider、国内可用接口、兼容 OpenAI 的模型服务尤其有帮助。 3. 运行时行为更安全这个分支还加入了一些很实用的保护:
目标很简单: 当问题发生时,系统应该更容易定位、更容易恢复,而不是随机卡死或莫名其妙地失败。 适合什么人这个分支特别适合下面这类用户:
一个很关键的现实结论我们在实际排查里发现,最大的问题往往不是 key 本身,而是网络路径。 如果你使用:
那么即使 key 是对的,接口也可能表现得很不稳定。 常见症状包括:
这个分支下,更稳定的使用方式通常是:
一句话总结就是:
这个分支不是什么这个分支并不是:
它仍然尽量贴近上游,只修补那些真正影响实际可用性的粗糙边缘。 你可以快速理解它的价值
谁应该试这个分支如果你觉得上游项目“很有潜力,但总有点不稳”,这个分支就是为这种情况准备的。 如果你的感受是: “模型本身没问题,但 Agent 框架这一层不够稳定” 那这个分支正好就是在补这个缺口。 推荐仓库简介
English OverviewThis fork focuses on one thing: making It is not a redesign of the project. It is a practical stability pass for people who want the original project to work more reliably in day-to-day use. What This Fork Improves1. More Reliable Tool CallingThis fork hardens the agent's tool-use loop so the model is less likely to:
In practice, this means fewer wasted turns, fewer malformed tool calls, and a smoother "read file -> think -> continue" workflow. 2. Better OpenAI-Compatible Provider SupportThis fork improves the OpenAI-compatible request path used by alternative providers and China-available endpoints. Notable improvements include:
This is especially helpful when using non-default backends instead of the original Claude-native path. 3. Safer Runtime BehaviorThis fork also includes practical defensive fixes:
The goal is simple: when something goes wrong, the agent should fail more clearly and recover more often. Best Use CaseThis fork is best for users who:
Important Network NoteThe biggest real-world issue we found was not the API key itself, but the network path. If you use VPN, Clash, Mihomo, TUN mode, fake-IP mode, or transparent proxy routing, some providers may become unstable even when the key is valid. Typical symptoms:
For this branch, the most stable setup is:
In other words:
What This Fork Is NotThis fork does not try to replace the original architecture, rewrite the UI, or turn the project into a completely different agent framework. It stays close to upstream, while fixing the rough edges that matter most in actual usage. Highlights At a Glance
Who Should Try This ForkIf upstream feels promising but flaky, this fork is for you. If your experience has been "the model is good, but the agent is unstable," this fork is aimed exactly at that gap. Suggested Short Description
|
|
Thanks a lot for the contribution — really appreciate the work here. The OpenAI non-stream support is a nice addition. My main concern is that most of the prompt-related changes in this PR are still operating on the text-protocol tool-calling path. In practice, for weaker models, switching to the native tool interface tends to be a much more effective improvement than adding more prompt-level constraints. So while some of these prompt-side adjustments may help in specific compatibility scenarios, I'm not sure they are the right long-term direction for the core branch. It may make sense to keep the non-stream/provider reliability parts, and be more conservative with the prompt/tool-protocol changes. If possible, splitting those parts apart would also make review easier. |
Thanks again for the thoughtful review — I think that’s a very reasonable concern. I resolved the conflicts conservatively with that in mind:
So the current result is meant to stay closer to the reliability-focused part of the PR, rather than treating prompt-level constraints as the main path forward. I agree that separating those concerns would likely make the review much clearer. If you think that would be better, I’d be happy to split the remaining prompt/tool-protocol-oriented changes into a follow-up PR. |
A GenericAgent fork focused on stabilizing tool use, OpenAI-compatible provider support, and network/runtime reliability for China-accessible model endpoints.