router catalog
The router's model list, which the Dynamiq LLM node reads its model's capabilities from.
RouterCatalog
The model lists of the routers the process calls, by router address.
A router lists the same models to every caller, so the cache holds no caller's data. A list is fetched again after
MODEL_LIST_TTL_SECONDS, and a failed fetch keeps the last list and is not retried for MODEL_LIST_RETRY_SECONDS.
A fetch the router refuses, such as for a revoked key, is retried later only for that caller's key, since it says
nothing about the list other callers get. Safe for concurrent use: one thread fetches a router's list while the
others wait for it.
Source code in dynamiq/nodes/llms/_router_catalog.py
90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 | |
aget(router_url, api_key, slug, fetch)
async
get with an async fetch. No lock is held across it, so two coroutines may fetch a due list at once.
Source code in dynamiq/nodes/llms/_router_catalog.py
126 127 128 129 130 131 132 133 134 135 136 | |
get(router_url, api_key, slug, fetch)
lookup, after fetching the router's list with fetch, which sends api_key, when it is due.
Source code in dynamiq/nodes/llms/_router_catalog.py
112 113 114 115 116 117 118 119 120 121 122 123 124 | |
lookup(router_url, slug)
The model's capabilities as last fetched, or None for a model the list lacks or a router not yet fetched.
Source code in dynamiq/nodes/llms/_router_catalog.py
106 107 108 109 110 | |
model_info_from_catalog(model)
The capabilities of a model in the router's list. Raises for an entry that does not describe them.
Prompt caching is left out: the catalog says whether a model caches at all, while the node asks whether it needs cache breakpoints, which only Claude does.
Source code in dynamiq/nodes/llms/_router_catalog.py
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | |