Skip to content
This repository was archived by the owner on Jun 5, 2026. It is now read-only.

===> open router - #9

Merged
VinceTran3110 merged 16 commits into
mainfrom
dev
Dec 1, 2025
Merged

===> open router#9
VinceTran3110 merged 16 commits into
mainfrom
dev

Conversation

@VinceTran3110

Copy link
Copy Markdown
Contributor

No description provided.

VinceTran3110 and others added 16 commits November 30, 2025 12:09
…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…
@VinceTran3110
VinceTran3110 merged commit 423d1ef into main Dec 1, 2025
1 check failed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant