ComfyUI custom nodes for Google Gemini image generation and editing using the Gemini web interface. Features: - Text-to-Image generation - Image-to-Image editing - Vision Chat - Auto Authentication with browser cookies - Self-contained with bundled dependencies
63 lines
1.0 KiB
Python
63 lines
1.0 KiB
Python
class AuthError(Exception):
|
|
"""
|
|
Exception for authentication errors caused by invalid credentials/cookies.
|
|
"""
|
|
|
|
pass
|
|
|
|
|
|
class APIError(Exception):
|
|
"""
|
|
Exception for package-level errors which need to be fixed in the future development (e.g. validation errors).
|
|
"""
|
|
|
|
pass
|
|
|
|
|
|
class ImageGenerationError(APIError):
|
|
"""
|
|
Exception for generated image parsing errors.
|
|
"""
|
|
|
|
pass
|
|
|
|
|
|
class GeminiError(Exception):
|
|
"""
|
|
Exception for errors returned from Gemini server which are not handled by the package.
|
|
"""
|
|
|
|
pass
|
|
|
|
|
|
class TimeoutError(GeminiError):
|
|
"""
|
|
Exception for request timeouts.
|
|
"""
|
|
|
|
pass
|
|
|
|
|
|
class UsageLimitExceeded(GeminiError):
|
|
"""
|
|
Exception for model usage limit exceeded errors.
|
|
"""
|
|
|
|
pass
|
|
|
|
|
|
class ModelInvalid(GeminiError):
|
|
"""
|
|
Exception for invalid model header string errors.
|
|
"""
|
|
|
|
pass
|
|
|
|
|
|
class TemporarilyBlocked(GeminiError):
|
|
"""
|
|
Exception for 429 Too Many Requests when IP is temporarily blocked.
|
|
"""
|
|
|
|
pass
|