mirror of
https://github.com/gadievron/raptor.git
synced 2026-04-25 05:56:00 +03:00
[PR #52] [MERGED] Add Pydantic validation for LiteLLM configs #56
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/raptor#56
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/gadievron/raptor/pull/52
Author: @gadievron
Created: 12/24/2025
Status: ✅ Merged
Merged: 12/25/2025
Merged by: @gadievron
Base:
main← Head:pydantic-litellm-validation📝 Commits (10+)
c3c3320Add auto thinking model selection and update to latest versionsd8c57ebFix Cursor bot issues on PR #502b34b28Fix inconsistent model name format in fallback8951ffcFix API key extraction and explicit null handling097326fFix non-list model_list value crashes iteration loop925805fFix null api_key handling and cost calculation26a91c7Fix invalid provider when matching by model name aliasf1a2e57Fix null model_name and underlying_model causing TypeErrorbbf4cc6Fix empty YAML config causing AttributeError5ceb9c6Add Pydantic validation for LiteLLM configs📊 Changes
2 files changed (+456 additions, -18 deletions)
View changed files
📝
packages/llm_analysis/llm/config.py(+291 -18)➕
packages/llm_analysis/llm/yaml_schema.py(+165 -0)📄 Description
Add Pydantic Validation for LiteLLM Configs
What
Validates LiteLLM YAML configuration files at load time using Pydantic schemas.
Why
Provides immediate, clear error messages for invalid configs instead of runtime failures.
Changes
yaml_schema.py- Pydantic validation schemas (169 lines)config.py- Validation integrationlitellm-model-configuration-guide.md- Documentation (331 lines)Validation Rules
provider/name(e.g.,openai/gpt-4o)Backward Compatible
No breaking changes. Invalid configs return empty list and fall back to environment variables.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.