改为 grok 了
This commit is contained in:
46
config.json
46
config.json
@@ -1,23 +1,28 @@
|
||||
{
|
||||
"app": {
|
||||
"name": "OpenRouter Image Generator",
|
||||
"version": "1.0.0",
|
||||
"description": "基于OpenRouter API的图像生成Web应用",
|
||||
"name": "Grok Image Generator",
|
||||
"version": "2.0.0",
|
||||
"description": "基于 Grok API 的图像生成 Web 应用",
|
||||
"author": "OVINC CN",
|
||||
"license": "MIT"
|
||||
},
|
||||
"api": {
|
||||
"default_base_url": "https://openrouter.ai/api/v1",
|
||||
"default_base_url": "",
|
||||
"default_timeout": 600,
|
||||
"default_model": "google/gemini-2.5-flash-image-preview:free",
|
||||
"default_model": "grok-imagine-1.0",
|
||||
"default_response_format": "b64_json",
|
||||
"default_n": 1,
|
||||
"supported_models": [
|
||||
{
|
||||
"id": "google/gemini-2.5-flash-image-preview:free",
|
||||
"name": "Google Gemini 2.5 Flash Image Preview",
|
||||
"description": "免费的Google Gemini模型,支持图像生成和视觉理解",
|
||||
"pricing": "free"
|
||||
"id": "grok-imagine-1.0",
|
||||
"name": "Grok Imagine 1.0",
|
||||
"description": "Grok 图像生成模型,支持文本到图像生成",
|
||||
"pricing": "paid",
|
||||
"capabilities": ["text-to-image"]
|
||||
}
|
||||
]
|
||||
],
|
||||
"supported_response_formats": ["url", "b64_json"],
|
||||
"max_images_per_request": 10
|
||||
},
|
||||
"ui": {
|
||||
"theme": {
|
||||
@@ -42,22 +47,23 @@
|
||||
}
|
||||
},
|
||||
"storage": {
|
||||
"settings_key": "openRouterSettings",
|
||||
"chat_history_key": "openRouterChatHistory",
|
||||
"generated_images_key": "openRouterGeneratedImages"
|
||||
"settings_key": "grokImageSettings",
|
||||
"chat_history_key": "grokImageChatHistory",
|
||||
"generated_images_key": "grokGeneratedImages"
|
||||
},
|
||||
"endpoints": {
|
||||
"models": "/models",
|
||||
"chat_completions": "/chat/completions",
|
||||
"image_generation": "/images/generations"
|
||||
"models": "/v1/models",
|
||||
"image_generation": "/v1/images/generations"
|
||||
},
|
||||
"error_messages": {
|
||||
"no_api_key": "请先输入API Key",
|
||||
"connection_failed": "连接失败,请检查网络和API设置",
|
||||
"invalid_response": "API响应格式错误",
|
||||
"no_api_key": "请先输入 API Key",
|
||||
"no_base_url": "请先配置 API 地址",
|
||||
"connection_failed": "连接失败,请检查网络和 API 设置",
|
||||
"invalid_response": "API 响应格式错误",
|
||||
"image_generation_failed": "图像生成失败",
|
||||
"file_too_large": "文件大小超过限制",
|
||||
"unsupported_format": "不支持的文件格式",
|
||||
"upload_failed": "文件上传失败"
|
||||
"upload_failed": "文件上传失败",
|
||||
"image_edit_not_supported": "当前 API 不支持图像编辑,仅支持文本生成图像"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user