merlyn/server/utils/AiProviders
PQ32 Developer 5bcef7d604 Patch 4: Increase OpenRouter promptWindowLimit fallback via AGENT_CONTEXT_WINDOW_FALLBACK
Both static and instance fallbacks increased from 4096 to 2,000,000 tokens.
When model isn't in models.json cache (e.g. Grok), it was falling back to
4096 tokens causing severe truncation of file reads.
Reuses AGENT_CONTEXT_WINDOW_FALLBACK env var from Patch 2.
2026-05-10 15:21:45 -07:00
..
anthropic add Dynamic max_tokens retreival for Anthropic models (#5255) 2026-03-23 15:45:22 -07:00
apipie add provider field to chats (#4959) 2026-02-02 20:11:18 -08:00
azureOpenAi Fix: Azure OpenAI model key collision (#5092) 2026-03-05 17:12:08 -08:00
bedrock fix: omit temperature param for Bedrock Claude Opus 4.7 (#5472) 2026-04-21 14:39:42 -07:00
cohere add provider field to chats (#4959) 2026-02-02 20:11:18 -08:00
cometapi add provider field to chats (#4959) 2026-02-02 20:11:18 -08:00
deepseek add provider field to chats (#4959) 2026-02-02 20:11:18 -08:00
dellProAiStudio chore: add ESLint to /server (#5126) 2026-03-05 16:32:45 -08:00
dockerModelRunner chore: add ESLint to /server (#5126) 2026-03-05 16:32:45 -08:00
fireworksAi add provider field to chats (#4959) 2026-02-02 20:11:18 -08:00
foundry chore: add ESLint to /server (#5126) 2026-03-05 16:32:45 -08:00
gemini add provider field to chats (#4959) 2026-02-02 20:11:18 -08:00
genericOpenAi Add capability detection and streaming usage for Generic OpenAI provider (#5477) 2026-04-21 09:31:58 -07:00
giteeai chore: add ESLint to /server (#5126) 2026-03-05 16:32:45 -08:00
groq add provider field to chats (#4959) 2026-02-02 20:11:18 -08:00
huggingface add provider field to chats (#4959) 2026-02-02 20:11:18 -08:00
koboldCPP add provider field to chats (#4959) 2026-02-02 20:11:18 -08:00
lemonade Update Lemonade Integration to support v10.1.0 changes (#5378) 2026-04-07 11:21:28 -07:00
liteLLM patch out max_tokens from block output amount 2026-02-12 14:20:08 -08:00
lmStudio chore: add ESLint to /server (#5126) 2026-03-05 16:32:45 -08:00
localAi add provider field to chats (#4959) 2026-02-02 20:11:18 -08:00
mistral chore: add ESLint to /server (#5126) 2026-03-05 16:32:45 -08:00
modelMap SambaNova Integration (#4943) 2026-01-29 18:48:22 -08:00
moonshotAi add provider field to chats (#4959) 2026-02-02 20:11:18 -08:00
novita native tool calling detection for novita 2026-03-05 10:19:03 -08:00
nvidiaNim chore: add ESLint to /server (#5126) 2026-03-05 16:32:45 -08:00
ollama Remove use_mlock from Ollama to solve WARN logs in ollama 0.17 2026-03-10 09:08:05 -07:00
openAi add provider field to chats (#4959) 2026-02-02 20:11:18 -08:00
openRouter Patch 4: Increase OpenRouter promptWindowLimit fallback via AGENT_CONTEXT_WINDOW_FALLBACK 2026-05-10 15:21:45 -07:00
perplexity add provider field to chats (#4959) 2026-02-02 20:11:18 -08:00
ppio chore: add ESLint to /server (#5126) 2026-03-05 16:32:45 -08:00
privatemode chore: add ESLint to /server (#5126) 2026-03-05 16:32:45 -08:00
sambanova chore: add ESLint to /server (#5126) 2026-03-05 16:32:45 -08:00
textGenWebUI add provider field to chats (#4959) 2026-02-02 20:11:18 -08:00
togetherAi add provider field to chats (#4959) 2026-02-02 20:11:18 -08:00
xai add provider field to chats (#4959) 2026-02-02 20:11:18 -08:00
zai add provider field to chats (#4959) 2026-02-02 20:11:18 -08:00