mirror of
https://github.com/gadievron/raptor.git
synced 2026-04-24 21:46:00 +03:00
[PR #51] [MERGED] Add LiteLLM callbacks and smart quota detection #55
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/raptor#55
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/51
Author: @gadievron
Created: 12/23/2025
Status: ✅ Merged
Merged: 12/26/2025
Merged by: @danielcuthbert
Base:
main← Head:llm-visibility-and-quota-detection📝 Commits (4)
ca8f817Add LiteLLM callbacks and smart quota detectione1124aaFix Cursor bot issues on PR #514eb8298Fix inconsistent error messages between generate methods7c2d65aFix model_config parameter being silently ignored in tests📊 Changes
7 files changed (+1289 additions, -23 deletions)
View changed files
📝
packages/llm_analysis/llm/client.py(+354 -23)➕
packages/llm_analysis/tests/__init__.py(+1 -0)➕
packages/llm_analysis/tests/test_llm_callbacks.py(+251 -0)➕
packages/llm_analysis/tests/test_llm_callbacks_instructor.py(+101 -0)➕
packages/llm_analysis/tests/test_llm_callbacks_providers.py(+230 -0)➕
packages/llm_analysis/tests/test_ollama_warning.py(+158 -0)➕
packages/llm_analysis/tests/test_quota_detection.py(+194 -0)📄 Description
Adds real-time model visibility with callbacks AND intelligent quota detection with simplified error messages.
Callbacks (Model Visibility)
Real-time visibility into LiteLLM model usage:
Quota Detection (Simplified)
Intelligent quota/rate limit error detection:
Changes:
Testing: 31/31 tests passing (100%)
Fixes: Gemini quota exhaustion issue (Dec 2025)
Breaking Changes: None
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.