Files
OpenWebUI-Discordbot/scripts/requirements.txt
Josh Knapp 394e4ccf24
All checks were successful
OpenWebUI Discord Bot / Build-and-Push (push) Successful in 53s
Fix Discord bot to use LiteLLM Responses API v2 with MCP tools
Key changes:
- Upgrade OpenAI SDK from 1.x to 2.x (required for responses API)
- Update get_ai_response to use developer role for system prompts
- Improve response extraction with output_text shorthand
- Add enhanced debug logging for troubleshooting
- Add traceback logging for better error diagnostics

This fixes the "'OpenAI' object has no attribute 'responses'" error
and enables proper MCP tool auto-execution through LiteLLM.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-12 10:58:10 -08:00

97 B