27 lines
1.0 KiB
YAML
27 lines
1.0 KiB
YAML
# PyNamer Configuration
|
|
|
|
# LLM API Configuration
|
|
llm:
|
|
provider: "openrouter" # Supported: openai, anthropic, openrouter
|
|
model: "openrouter/google/gemma-3-27b-it" # Must be a vision-capable model
|
|
api_key: "" # Your API key (or set OPENAI_API_KEY environment variable)
|
|
endpoint: "" # Custom endpoint URL if needed
|
|
max_tokens: 100 # Maximum tokens for response
|
|
temperature: 0.7 # Temperature for generation
|
|
|
|
# Image Processing
|
|
image:
|
|
supported_formats:
|
|
- ".jpg"
|
|
- ".jpeg"
|
|
- ".png"
|
|
- ".gif"
|
|
- ".webp"
|
|
resize_max_dimension: 1024 # Max width/height before resizing
|
|
resize_format: "JPEG" # Format for resized images
|
|
|
|
# Prompt Configuration
|
|
prompt:
|
|
system_message: "You are a helpful assistant that generates concise, descriptive filenames for images. Focus on the main subject, key attributes, and context. Use snake_case format without special characters."
|
|
user_message: "Generate a descriptive filename for this image. The filename should be concise, specific, and use snake_case format. Do not include a file extension."
|