Skip to content

docs: fix references to non-existent litellm config and error classes - #926

Open
Th1rtynine wants to merge 1 commit into
BerriAI:mainfrom
Th1rtynine:fix/nonexistent-config-class-refs
Open

docs: fix references to non-existent litellm config and error classes#926
Th1rtynine wants to merge 1 commit into
BerriAI:mainfrom
Th1rtynine:fix/nonexistent-config-class-refs

Conversation

@Th1rtynine

Copy link
Copy Markdown

Several docs pages reference litellm classes that do not exist in the litellm package:

  • litellm.HuggingfaceConfig -> litellm.HuggingFaceChatConfig, the chat config class exposed in litellm/init.py. The example also passed max_new_tokens, which is not a field of that config, so it now uses the supported max_tokens parameter
  • litellm.OllamConfig -> litellm.OllamaConfig
  • litellm.CohereConfig -> litellm.CohereChatConfig
  • litellm.ContextWindowExceededErrors -> litellm.ContextWindowExceededError, the exception class is singular

None of the old names appear anywhere in the litellm codebase; the corrected names are the ones registered in litellm/init.py and litellm/_lazy_imports_registry.py

@vercel

vercel Bot commented Aug 18, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
litellm Ready Ready Preview Aug 18, 2026 4:45am

Request Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant