You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] "RPC response exceeded the transport limit" when fetching large model catalog #1
Describe the bug
When attempting to change or load models in the web UI with multiple model providers configured (e.g., OpenRouter, Anthropic, Ollama, etc.), the model picker fails with: Model error. RPC response exceeded the transport limit
Although ompweb supports RPC Protocol v2 chunk reassembly during live sessions, it appears that the get_available_models query (or the initial process used to fetch the model list) is dispatched before Protocol v2 negotiation completes, or is executed over an un-negotiated Protocol v1 transport. Because the catalog response exceeds the 1 MiB v1 single-frame limit, OMP drops the payload.
To reproduce
Steps to reproduce the behavior:
Configure OMP with multiple providers or a large model catalog (e.g., OpenRouter with full catalog enabled).
Start ompweb (npx @kahme247/ompweb@latest or ompweb).
Open the web UI in a browser.
Attempt to open the model selector / change models.
See error: Model error. RPC response exceeded the transport limit.
Expected behavior ompweb should complete the RPC v2 handshake (negotiate_protocol: 2) before requesting get_available_models, or properly handle chunk reassembly for catalog queries so that model lists larger than 1 MiB load successfully without transport errors.
Environment
OS: Windows 11
Node.js / Runtime: Bun v1.3.14
omp version: 17.3.4
omp-web version: 0.3.1
Additional context
Temporarily patching the hardcoded 1 MiB (1048576) transport limit constant in the installed OMP global bundle to 10485760 (10 MiB) immediately resolves the issue, confirming that the catalog query is hitting OMP's legacy Protocol v1 single-frame ceiling rather than utilizing Protocol v2 chunked streaming.
Thanks for the clear report and workaround — it helped confirm the model catalog was still using the v1 transport. The fix is in PR #3 and makes the utility process negotiate RPC v2 before loading models.
Activity
kahme247 commentedon Aug 17, 2026
Thanks for the clear report and workaround — it helped confirm the model catalog was still using the v1 transport. The fix is in PR #3 and makes the utility process negotiate RPC v2 before loading models.
Fix RPC v2 negotiation for large model catalogs (#3)
btajuddin commentedon Aug 18, 2026
@kahme247 Could you please publish this fix? I don't think it's in 0.3.2, and I could really use it.
kahme247 commentedon Aug 22, 2026
@btajuddin its already in 0.3.3 should have incuded it