文章摘要
GitHub用户thdxr提交了一个代码修改请求,涉及18行新增和193行删除,该请求已被合并。主要内容是关于AI代码创建相关的功能改进。
文章总结
文章主要内容重述
标题:根据法律要求移除Anthropic相关内容的代码合并请求
该合并请求(PR #18186)主要涉及根据法律合规要求,从代码库中移除所有与Anthropic相关的特定内容。以下是关键修改内容:
核心变更:
1. 删除了Anthropic品牌系统提示文件anthropic-20250930.txt
2. 移除了内置插件opencode-anthropic-auth@0.0.13及相关禁用插件检查OPENCODE_DISABLE_DEFAULT_PLUGINS
3. 从请求头中移除了claude-code-20250219测试版标志
4. 更新了提供方登录界面和文档,移除了Claude Pro/Max的OAuth流程
发现的问题:
1. 在llm.ts文件重构过程中,意外移除了发送给非opencode和非Anthropic提供方(如OpenAI、Google、Azure等)的User-Agent: opencode/${VERSION}请求头
2. 文档中关于Anthropic的部分仍存在与已移除UI选项相关的不一致描述
重要文件变更:
- llm.ts:简化了请求头逻辑但意外移除了重要请求头
- providers.mdx:文档更新不完整
- 其他多个文件进行了干净彻底的Anthropic相关内容移除
建议:
- 确认User-Agent请求头移除是否是有意为之
- 修复文档中遗留的不一致描述
- 核心内容移除工作完成良好,但两个问题影响了整体评分(3/5)
该PR已合并,相关分支已被删除,多个开发者随后引用了该提交。
评论总结
总结:
支持Anthropic的观点:
- 认为Anthropic有权限制对其补贴服务的使用,用户不应滥用其API。
- 引用:"The people mad about this feel they are entitled to the heavily subsidized usage... Anthropic has every right to place rules around their generous subsidization."(评论7)
- 引用:"It's clearly just a business decision from Anthropic... usage subsidization to keep people on the first party product surface is practically the oldest business move in the book."(评论12)
反对Anthropic的观点:
- 批评Anthropic对开源项目采取法律行动,认为这是过度控制。
- 引用:"Anthropic really on a roll making friends in Open Source... threatening OpenClaw."(评论1)
- 引用:"Driving your business on content you don't own and then this. Disgusting."(评论22)
中立或质疑的观点:
- 质疑Anthropic的法律依据及其对开源生态的影响。
- 引用:"Under what law can Anthropic force OpenCode to do this? Surely it's not illegal to publish code that interacts with an API?"(评论6)
- 引用:"This wouldn't be so bad if they didn't have such a sucky tui or ecosystem. AI is chef's kiss, tooling is bottom barrel."(评论13)
其他观点:
- 建议用户转向其他服务以避免冲突。
- 引用:"Just use GPT5.4, avoid the drama."(评论19)
- 引用:"avoid bun... don't rely on any anthropic tools or models."(评论20)