fix(coding-agent): honor registered model base urls

closes #4063
This commit is contained in:
Mario Zechner
2026-05-01 22:18:49 +02:00
parent f5b6e4fab0
commit ddb8ed0c73
5 changed files with 11 additions and 2 deletions

View File

@@ -1602,7 +1602,7 @@ pi.registerProvider("corporate-ai", {
- `api` - API type: `"anthropic-messages"`, `"openai-completions"`, `"openai-responses"`, etc.
- `headers` - Custom headers to include in requests.
- `authHeader` - If true, adds `Authorization: Bearer` header automatically.
- `models` - Array of model definitions. If provided, replaces all existing models for this provider.
- `models` - Array of model definitions. If provided, replaces all existing models for this provider. Model definitions can set `baseUrl` to override the provider endpoint for that model.
- `oauth` - OAuth provider config for `/login` support. When provided, the provider appears in the login menu.
- `streamSimple` - Custom streaming implementation for non-standard APIs.