Commit Graph
18 Commits
Author SHA1 Message Date
Jason Xu ea29a62eca fix: harden gateway routing and protocol fidelity
Preserve request parameters, tool-call completion reasons and retry session
affinity. Bound upstream header waits, stop expired-context scans and add
opt-in redacted request-body diagnostics.

Isolate Playground diagnostics from production pools, report stream failures
accurately, align readiness with discoverable models and honor Docker listen
configuration.

Split Go and WebUI modules by responsibility, add regression tests and CI,
standardize formatting and rewrite the English and Chinese READMEs.

Refs: #6, #18, #19, #20, #21, #22, #23, #24, #25
2026-09-15 00:43:35 +08:00
sk-dev-ai ce89cc01cb fix: nested modalities, per-tier metadata, drop committed cache
- capabilityModel now reads the nested modalities.{input,output} object
  the catalog actually serves; the old top-level input/output tags
  never matched and left both arrays permanently empty.
- Metadata is stored per tier and /v1/models selects by route.Tier,
  so same-named Zen/Go models (glm-5, minimax-m3, ...) advertise the
  limits of the tier that will serve them. Anonymous routes resolve
  to TierZen, keeping the keyless path on Zen metadata.
- Cache schema 2 -> 3; stale flat caches are refused and fall back
  to live refresh.
- Untrack config.json.models.catalog.json and ignore
  *.models.catalog.json: it is a runtime snapshot, not source.
- Add models_test.go fixtures: nested modalities, tier-split limits,
  tier selection, v3 round-trip, v2 rejection.
2026-09-05 12:29:36 +05:30
sk-dev-ai 04ce09cc9c feat: expose per-model metadata (context window, reasoning, tool call, modalities) in /v1/models
fetchProtocolCapabilities already parses the full opencode catalog but
discards everything except protocol. Capture limit/reasoning/tool_call/
structured_output/modalities per model and expose them in /v1/models so
auto-discovering clients (e.g. jcode, which defaults every model to 200k
when context_window is absent) get correct context and feature flags.

Purely additive: routing/decision logic untouched, legacy response shape
preserved, cache schema bumped to v2 (old v1 caches load fine).
2026-09-04 10:52:11 +05:30
Jason Xu 2c87495826 feat: improve stream monitoring and model catalog reliability 2026-09-04 02:22:27 +08:00
Jason Xu 3be4b393c0 feat: show upstream key suffix per request 2026-08-27 21:36:17 +08:00
Jason Xu c4c1f36d61 fix: sync OpenCode model capabilities dynamically 2026-08-23 22:06:27 +08:00
Jason Xu 25885c4e25 Remove DeepSeek default protocol override 2026-08-22 23:24:20 +08:00
Jason Xu cc71ba8aff feat: revise free model routing fallback 2026-08-20 04:01:39 +08:00
Jason Xu 4f8f195f9f feat: expose authenticated playground diagnostics 2026-08-20 00:39:06 +08:00
Jason Xu 3e0a6f0b62 feat: add compatible model metadata routing 2026-08-20 00:39:06 +08:00
Jason Xu c1b1ab8bd2 fix: harden cross-protocol inference conversion 2026-08-20 00:13:10 +08:00
Jason Xu 8e131dcf3b feat: add anonymous Zen support 2026-08-17 12:40:24 +08:00
Jason Xu fdae1902a0 feat: add authenticated web management console 2026-08-16 04:29:43 +08:00
Jason Xu 4d10eac974 refactor: rewrite protocol forwarding 2026-08-14 16:57:30 +08:00
Jason Xu efbdb6e7d1 fix: normalize tool history and improve health checks 2026-08-14 16:17:36 +08:00
Jason Xu adb0edb64a config: make zen/go preference configurable via prefer field
Add a top-level "prefer" config field ("zen" or "go", default "go") that
controls which upstream is used when a model is available in both pools,
including during the temporary model-discovery fallback. Previously Zen
was always preferred.
2026-08-14 10:34:08 +08:00
Jason Xu e220e7a040 fix: refine proxy health recovery 2026-08-14 10:10:26 +08:00
Jason Xu f32c4a0e61 feat: add OpenCode Zen API compatibility proxy 2026-08-14 08:33:22 +08:00