fix(uniai): preserve /vN version suffix in normalizeOpenAIBase
normalizeOpenAIBase unconditionally appended /v1 to any endpoint
that did not already contain it. This broke providers like zhipuai
(BigModel) whose OpenAI-compatible base URL already ends with a
version segment (e.g. /api/paas/v4) and does not use an additional
/v1 path.
Add a regex check for /v\\d+$ so that any endpoint ending with a
version segment is preserved as-is, while bare domains still get
the automatic /v1 appended.
Fixes 404 errors when using --profile zhipuai.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
authored by