mirror of
https://github.com/gadievron/raptor.git
synced 2026-04-25 05:56:00 +03:00
[PR #32] [CLOSED] Replace individual LLM providers with unified LiteLLM integration #41
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/raptor#41
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/32
Author: @gadievron
Created: 12/10/2025
Status: ❌ Closed
Base:
main← Head:feat/litellm-integration📝 Commits (1)
0a0f6b1Replace individual LLM providers with unified LiteLLM integration📊 Changes
10 files changed (+362 additions, -438 deletions)
View changed files
📝
README.md(+23 -3)📝
packages/autonomous/dialogue.py(+6 -6)📝
packages/llm_analysis/agent.py(+27 -24)📝
packages/llm_analysis/crash_agent.py(+9 -10)📝
packages/llm_analysis/llm/client.py(+21 -11)📝
packages/llm_analysis/llm/config.py(+14 -12)📝
packages/llm_analysis/llm/providers.py(+248 -360)📝
packages/web/fuzzer.py(+2 -3)📝
packages/web/scanner.py(+7 -3)📝
requirements.txt(+5 -6)📄 Description
Summary
Replaces custom ClaudeProvider, OpenAIProvider, and OllamaProvider (~360 lines) with unified LiteLLMProvider (~180 lines) using LiteLLM + Instructor libraries.
Key improvements:
Files Changed (10 files)
Core LLM:
packages/llm_analysis/llm/providers.py- Replace 3 providers with unified LiteLLMProviderpackages/llm_analysis/llm/config.py- Add Gemini support, fix unnecessary lambdaspackages/llm_analysis/llm/client.py- Add API key sanitization, LiteLLM redactionIntegration:
packages/llm_analysis/agent.py- Update imports, initializationpackages/llm_analysis/crash_agent.py- Update imports, initializationpackages/autonomous/dialogue.py- Update type hintspackages/web/fuzzer.py- Update type hintspackages/web/scanner.py- Update initializationDependencies & Docs:
requirements.txt- Add litellm, instructor, pydanticREADME.md- Add AI assistant guide docsTesting
15 comprehensive tests running in background:
Backward Compatibility
100% compatible via aliases:
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.