Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/services/llm_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def create_or_edit_image(
Generate or edit an image.
Returns raw image bytes (base64 string) on success or error message.
"""
image_model = "google/gemini-2.5-flash-image"
image_model = "google/gemini-3.1-flash-image-preview"

Choose a reason for hiding this comment

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

medium

While updating the model is the goal of this PR, hardcoding the model name here makes it difficult to manage and update in the future, especially for a model in 'preview'. It's inconsistent with how OPENROUTER_MODEL is handled. Consider moving this to a configuration variable (e.g., OPENROUTER_IMAGE_MODEL in config.py) and initializing it in the LLMService constructor. This will improve maintainability and align with existing patterns in the codebase.

logger.info(f"Image task with model: {image_model}")

try:
Expand Down
Loading