anything-llm/server/utils/AiProviders
Timothy Carambat 99f2c25b1c
Agent Context window + context window refactor. (#2126)
* Enable agent context windows to be accurate per provider:model

* Refactor model mapping to external file
Add token count to document length instead of char-count
refernce promptWindowLimit from AIProvider in central location

* remove unused imports
2024-08-15 12:13:28 -07:00
..
anthropic Agent Context window + context window refactor. (#2126) 2024-08-15 12:13:28 -07:00
azureOpenAi Agent Context window + context window refactor. (#2126) 2024-08-15 12:13:28 -07:00
bedrock Agent Context window + context window refactor. (#2126) 2024-08-15 12:13:28 -07:00
cohere Agent Context window + context window refactor. (#2126) 2024-08-15 12:13:28 -07:00
gemini Agent Context window + context window refactor. (#2126) 2024-08-15 12:13:28 -07:00
genericOpenAi Agent Context window + context window refactor. (#2126) 2024-08-15 12:13:28 -07:00
groq Agent Context window + context window refactor. (#2126) 2024-08-15 12:13:28 -07:00
huggingface Agent Context window + context window refactor. (#2126) 2024-08-15 12:13:28 -07:00
koboldCPP Agent Context window + context window refactor. (#2126) 2024-08-15 12:13:28 -07:00
liteLLM Agent Context window + context window refactor. (#2126) 2024-08-15 12:13:28 -07:00
lmStudio Agent Context window + context window refactor. (#2126) 2024-08-15 12:13:28 -07:00
localAi Agent Context window + context window refactor. (#2126) 2024-08-15 12:13:28 -07:00
mistral Agent Context window + context window refactor. (#2126) 2024-08-15 12:13:28 -07:00
native Agent Context window + context window refactor. (#2126) 2024-08-15 12:13:28 -07:00
ollama Agent Context window + context window refactor. (#2126) 2024-08-15 12:13:28 -07:00
openAi Agent Context window + context window refactor. (#2126) 2024-08-15 12:13:28 -07:00
openRouter Agent Context window + context window refactor. (#2126) 2024-08-15 12:13:28 -07:00
perplexity Agent Context window + context window refactor. (#2126) 2024-08-15 12:13:28 -07:00
textGenWebUI Agent Context window + context window refactor. (#2126) 2024-08-15 12:13:28 -07:00
togetherAi Agent Context window + context window refactor. (#2126) 2024-08-15 12:13:28 -07:00
modelMap.js Agent Context window + context window refactor. (#2126) 2024-08-15 12:13:28 -07:00