320052682

修复 Claude Code 2.1.154+ 与小米 MiMo 模型的兼容性问题。包含完整的配置指南、代理原理说明和故障排除。

12
0
69% credibility
Found May 31, 2026 at 12 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
AI Summary

A compatibility fix that helps Claude Code work with third-party AI services by adding a local translation layer between them.

How It Works

1
🤔 You discover a problem

You try to use Claude Code with a different AI service, but it stops working and shows an error message.

2
🔍 You learn what went wrong

The newer version of Claude Code talks differently to AI services, but yours doesn't understand that new language yet.

3
⚙️ You set up a translator

You tell your computer to send AI requests through a small helper program that speaks both languages.

4
🚀 You start the helper

You run the translator program so it can sit and listen for your requests in the background.

5
🔄 You restart Claude Code

You refresh Claude Code so it notices your new setup and starts using the translator automatically.

🎉 Everything works!

Your AI coding assistant now works perfectly with your preferred service, and you can get back to building things.

Sign up to see the full architecture

4 more

Sign Up Free

Star Growth

See how this repo grew from 12 to 12 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is claude-code-third-party-api-fix?

This is a Node.js proxy solution that bridges Claude Code 2.1.154+ with third-party Anthropic-compatible APIs like Xiaomi MiMo, DeepSeek, and Zhipu. The problem: Claude Code now sends system prompts as part of the messages array, but most third-party APIs reject this format with a 400 error. The fix intercepts requests at localhost, strips out the system role from messages, and forwards the corrected payload to your chosen API. You configure it through environment variables pointing to a local proxy running on port 4567.

Why is it gaining traction?

Developers stuck on budget-friendly third-party APIs hit a wall after the Claude Code update. This workaround is dead simple: three steps, no dependencies beyond Node, and it works with any API that speaks the Anthropic format. The README includes curl commands for testing your setup end-to-end, which saves debugging time. For teams already running Claude Code with MiMo or similar models, this is the only documented path forward without switching providers.

Who should use this?

Developers using Claude Code with Xiaomi MiMo, DeepSeek, or other third-party Anthropic-compatible models who upgraded past 2.1.154 and started getting 400 errors. If you are running Claude Code CLI and have invested in a non-Anthropic API setup, this is your fix. Not useful if you are on the official Anthropic API or an earlier Claude Code version.

Verdict

A niche but necessary tool for a specific compatibility problem. The approach is pragmatic and the setup is fast, but with 12 stars and minimal documentation beyond the README, treat it as a community patch rather than production-grade infrastructure. The 0.7% credibility score reflects its early stage. Try it if you need it, but verify it handles your specific API before relying on it in critical workflows.

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.