gitdataai/libs
ZhenYi a8e3b0f5a8 fix(agent/sync): handle multiple /v1/models response formats
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.
2026-04-26 16:26:57 +08:00
..
agent feat(agent): add ordered stream chunk collection + retry for HTTP errors 2026-04-26 13:10:26 +08:00
agent-tool-derive init 2026-04-15 09:08:09 +08:00
api chore(api): remove entire admin module 2026-04-26 14:08:15 +08:00
avatar init 2026-04-15 09:08:09 +08:00
config refactor(db): simplify read-replica to single connection for CNPG 2026-04-26 01:03:39 +08:00
db revert(db): remove check_compatibility — method not available in sqlx 0.8 2026-04-26 15:49:51 +08:00
email feat: add health endpoints and Prometheus metrics to git-hook and email-worker 2026-04-25 23:45:48 +08:00
frontend feat(api): pre-compress static assets with brotli and gzip 2026-04-25 20:09:09 +08:00
git feat(gitserver): add /robots.txt to disallow all crawlers 2026-04-26 00:16:21 +08:00
migrate feat: thinking_content column + first-project budget logic 2026-04-26 13:11:06 +08:00
models feat: thinking_content column + first-project budget logic 2026-04-26 13:11:06 +08:00
observability feat(observability): inject _msg field for VictoriaLogs compatibility 2026-04-26 13:31:05 +08:00
queue feat(room): store ordered streaming chunks + billing integration 2026-04-26 13:10:42 +08:00
room feat(room): store ordered streaming chunks + billing integration 2026-04-26 13:10:42 +08:00
rpc chore(rpc): regenerate after removing metrics endpoints 2026-04-24 13:22:01 +08:00
service fix(agent/sync): handle multiple /v1/models response formats 2026-04-26 16:26:57 +08:00
session feat(admin): add admin panel with billing alerts and model sync 2026-04-19 20:48:59 +08:00
session_manager perf: sequence generation Redis-only + session MGET batch 2026-04-24 00:04:27 +08:00
transport init 2026-04-15 09:08:09 +08:00
webhook init 2026-04-15 09:08:09 +08:00