Files
opencode2api/internal
FLYFandAiFLYF f9ef5693ab feat(upstream): follow the OpenCode 2.1 client's version and /inference routes (#141)
Captured a 2.1.1 CLI request with the plugin hook that produced the 2.0.32
capture. The body is byte-identical; what moved is the version string and the
route.

The 2.1 client groups /inference routes by provider family, so a chat request
goes to /inference/openai/v1/chat/completions, responses to
/inference/openai/v1/responses and messages to /inference/anthropic/v1/messages.
A 2.0.32 client posted the protocol path directly and that route still answers,
so this is fidelity rather than a fix.

The family segment is only inserted for the /inference origin: a custom base
URL and the /zen/go lane keep the flat route, because the grouping belongs to
/inference alone.

Co-authored-by: AiFLYF <AiFLYF@users.noreply.github.com>
2026-10-23 09:23:58 +08:00
..
2026-10-19 05:27:50 +08:00
2026-10-19 05:27:50 +08:00
2026-10-19 05:27:50 +08:00