你的Agent罢工不干活可能是接错了API 格式
TL;DR - This practical guide explains how mismatched API formats can break agent reasoning, memory, caching, and tool calls. Developers should match the client’s protocol with an endpoint the model provider or proxy actually supports.
- Chat Completions is the broadest compatibility option and is typically safest for cross-provider services and proxies.
- OpenAI Responses natively supports reasoning models, server-side conversation state, and built-in tools, but unsupported proxies may return 404 errors.
- Anthropic Messages enables Claude-native features such as prompt caching and thinking; compatibility translations may omit them.
- Format selection is driven primarily by the agent/client protocol—such as Codex or Claude Code—not solely by the underlying model.