The upstream AI endpoint returns an OpenAI-compatible format, but the
response body parsing was fragile. Make it resilient:
1. Try standard OpenAI format: { "data": [{id}, ...] }
2. Try raw array: [{id}, ...]
3. Try alternate format: { "models": [{id}, ...] }
4. Log actual response body (first 500 chars) when all formats fail
Also adds a warning log with the raw response on parse failure so
future debugging is straightforward.
|
||
|---|---|---|
| .. | ||
| agent | ||
| auth | ||
| file_tools | ||
| git | ||
| git_tools | ||
| issue | ||
| project | ||
| project_tools | ||
| pull_request | ||
| search | ||
| skill | ||
| user | ||
| utils | ||
| workspace | ||
| Cargo.toml | ||
| error.rs | ||
| lib.rs | ||
| push.rs | ||
| storage.rs | ||
| webhook_dispatch.rs | ||
| ws_token.rs | ||