zot/packages
Pietro Di Bello 9bb884ebbc
fix(provider): keep /v4 base from getting a spurious /v1 chat path
The OpenAI-compatible client only treated a base URL ending in "/v1" as
already-versioned; any other base got "/v1/chat/completions" appended.

Z.AI's coding-plan base ends in "/paas/v4", so requests were sent to
".../paas/v4/v1/chat/completions" — a path that does not exist — and
every GLM model returned 404.

Match any trailing "/vN" version segment instead. This is behaviour-
identical for all existing providers (their versioned bases all end in
"/v1") and only changes Z.AI, which now hits ".../paas/v4/chat/completions".
2026-06-14 21:45:53 +02:00
..
agent Add temperature option 2026-06-14 11:42:31 +02:00
core Add temperature option 2026-06-14 11:42:31 +02:00
ignore fix(tui): honor nested .gitignore in recursive @-picker + raise entry cap 2026-06-10 09:13:18 -04:00
provider fix(provider): keep /v4 base from getting a spurious /v1 chat path 2026-06-14 21:45:53 +02:00
tui Word-wrap provider error rows instead of truncating 2026-06-04 19:25:16 +02:00