Files
9router/src
Omar Nahhas SanchezandAgent Zero 838d9a7a04 fix: add 5s timeout to fetchCompatibleModelIds and skip upstream connections (#541)
The fetchCompatibleModelIds() function had no timeout on its fetch() call,
causing /v1/models to hang indefinitely when an openai-compatible provider
was unreachable or slow to respond.

Additionally, upstream/cross-instance connections (provider IDs containing
a UUID suffix like openai-compatible-chat-XXXXXXXX) would trigger recursive
/models fetches between instances, creating infinite loops.

Fixes:
- Add AbortController with 5-second timeout to the fetch() call
- Skip dynamic model fetching for upstream/cross-instance connections
  (detected by UUID suffix pattern in provider ID)
- Existing try/catch already handles abort errors gracefully

Co-authored-by: Agent Zero <agent@agent-zero.local>
2026-04-10 10:30:07 +07:00
..
2026-03-17 09:30:07 +07:00
2026-04-09 10:16:11 +07:00
2026-04-10 10:17:53 +07:00
2026-04-10 10:17:53 +07:00
2026-02-20 17:05:46 +07:00
2026-03-27 11:45:54 +07:00
2026-03-27 11:45:54 +07:00
2026-02-21 16:42:46 +07:00