mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-11-05 23:37:25 +00:00
closes #11132 pi sends every opencode and opencode-go request to the shared base (`https://opencode.ai/inference/v1`, `/inference/go/v1`), Jev included. this switches them to the documented protocol-specific endpoints, which is also what models.dev lists per model: | api | before | after | |---|---|---| | openai-completions / openai-responses | `/inference/v1` | `/inference/openai/v1` | | anthropic-messages | `/inference` | `/inference/anthropic` (SDK appends `/v1/messages`) | | google-generative-ai | `/inference/v1` | `/inference/google/v1beta` | | jev-1.13 / jev-1.13-free | `/inference/v1` | `/inference/systemone/v1` | go uses the same paths under `/inference/go/...`. changes: base URLs in `generate-models.ts`, the jev URL expectations in `test/classifier-models.test.ts`, and a stale comment in `providers/opencode.ts`. `models.generated.ts` has no diff since the catalog data is gitignored. verified with the regenerated catalog: - all 111 opencode/opencode-go models hit their new URL, none 404 - real requests with an OpenCode key returned replies on anthropic-messages, google-generative-ai, openai-responses, openai-completions and jev - go returned 403 "subscription required" from the new paths (my key has no Go sub), so routing works there too `npm run check` passes. `./test.sh` passes for ai and coding-agent; the only remaining failures were timeouts that pass in isolation and pi-env tests that need cargo locally. --- _Drafted with AI assistance, reviewed by me._ |
||
|---|---|---|
| .. | ||
| ai-gateway-pricing.ts | ||
| check-model-data.ts | ||
| generate-models.ts | ||
| generate-test-image.ts | ||
| hydrate-model-catalog.ts | ||
| model-data.ts | ||
| models-dev-reasoning-options.ts | ||
| openrouter-catalog.ts | ||
| openrouter-reasoning-options.ts | ||