Files
OpenRouter_Image/config.json

63 lines
2.0 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"app": {
"name": "OpenRouter Image Generator",
"version": "1.0.0",
"description": "基于OpenRouter API的图像生成Web应用",
"author": "OVINC CN",
"license": "MIT"
},
"api": {
"default_base_url": "https://openrouter.ai/api/v1",
"default_timeout": 600,
"default_model": "google/gemini-2.5-flash-image-preview:free",
"supported_models": [
{
"id": "google/gemini-2.5-flash-image-preview:free",
"name": "Google Gemini 2.5 Flash Image Preview",
"description": "免费的Google Gemini模型支持图像生成和视觉理解",
"pricing": "free"
}
]
},
"ui": {
"theme": {
"primary_color": "#667eea",
"secondary_color": "#764ba2",
"background_gradient": "linear-gradient(135deg, #667eea 0%, #764ba2 100%)"
},
"features": {
"drag_drop": true,
"image_preview": true,
"chat_history": true,
"image_gallery": true,
"settings_panel": true,
"connection_status": true
},
"limits": {
"max_file_size": 10485760,
"max_files_per_upload": 5,
"supported_image_formats": ["image/jpeg", "image/png", "image/gif", "image/webp"],
"max_chat_history": 100,
"max_generated_images": 50
}
},
"storage": {
"settings_key": "openRouterSettings",
"chat_history_key": "openRouterChatHistory",
"generated_images_key": "openRouterGeneratedImages"
},
"endpoints": {
"models": "/models",
"chat_completions": "/chat/completions",
"image_generation": "/images/generations"
},
"error_messages": {
"no_api_key": "请先输入API Key",
"connection_failed": "连接失败请检查网络和API设置",
"invalid_response": "API响应格式错误",
"image_generation_failed": "图像生成失败",
"file_too_large": "文件大小超过限制",
"unsupported_format": "不支持的文件格式",
"upload_failed": "文件上传失败"
}
}