This repository was archived by the owner on Jun 5, 2026. It is now read-only.
===> open router - #9
Merged
Merged
Conversation
Change open router
change open router
…ation Added robust type checking and error handling to prevent the error where API responses might return unexpected data structures (list instead of dict). Changes: - Add validation for response_data to ensure it's a dict before accessing - Add validation for first_choice and message objects in OpenRouter response - Add validation for pr_data in GitHub API response - Add validation for GENERATION_CONFIG to ensure it's a dict - Improve error messages to show actual vs expected types - Add detailed traceback logging for unexpected errors - Update error messages from Gemini to OpenRouter references This should catch the exact location where the 'list' object error occurs and provide clear error messages for debugging. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Fix 'list object has no attribute get' error with comprehensive valid…
change open router
Change open router
refactor debug code
refactor debug code
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.