Skip to content

fix: change ModelName to a regular class so that (class) constants can be used like regular strings in Python >3.10#116

Merged
adi-wan-askui merged 1 commit intomainfrom
fix/enum-issue-python-3.13
Aug 15, 2025
Merged

fix: change ModelName to a regular class so that (class) constants can be used like regular strings in Python >3.10#116
adi-wan-askui merged 1 commit intomainfrom
fix/enum-issue-python-3.13

Conversation

@adi-wan-askui
Copy link
Contributor

@adi-wan-askui adi-wan-askui commented Aug 14, 2025

…can be used like regular strings in Python > 3.10

  • e.g., fixes issues with using Gemini where, e.g., "ModelName.GEMINI__2_5__FLASH" was passed as model id instead of "gemini-2.5-flash"

…can be used like regular strings in Python 3.13
@adi-wan-askui adi-wan-askui changed the title fix: change ModelName to a regular class so that (class) constants can be used like regular strings in Python 3.13 fix: change ModelName to a regular class so that (class) constants can be used like regular strings in Python >3.13 Aug 14, 2025
@adi-wan-askui adi-wan-askui changed the title fix: change ModelName to a regular class so that (class) constants can be used like regular strings in Python >3.13 fix: change ModelName to a regular class so that (class) constants can be used like regular strings in Python >3.10 Aug 14, 2025
Copy link
Contributor

@danyalxahid-askui danyalxahid-askui left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm.

Assuming this also solves the issue with boolean response schema for gemini models.

@adi-wan-askui adi-wan-askui merged commit d6e0d8b into main Aug 15, 2025
1 check passed
@adi-wan-askui adi-wan-askui deleted the fix/enum-issue-python-3.13 branch August 15, 2025 06:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants