Commit 5b55f6e
committed
fix: provide fallback context window values for Ollama and LM Studio models
- Add fallback ModelInfo when routerModels.ollama or lmStudioModels return undefined
- Fixes context window display showing "used/1" instead of actual max tokens
- Ensures proper context window management for Ollama and LM Studio providers
Fixes #76741 parent b48b0be commit 5b55f6e
1 file changed
+22
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
255 | 255 | | |
256 | 256 | | |
257 | 257 | | |
| 258 | + | |
258 | 259 | | |
259 | 260 | | |
260 | | - | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
261 | 271 | | |
262 | 272 | | |
263 | 273 | | |
264 | 274 | | |
265 | 275 | | |
| 276 | + | |
266 | 277 | | |
267 | 278 | | |
268 | | - | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
269 | 289 | | |
270 | 290 | | |
271 | 291 | | |
| |||
0 commit comments