From 7c4c956be0c3c4c2f76f181e356779003bc8f998 Mon Sep 17 00:00:00 2001
From: log
Date: Thu, 25 Jun 2026 22:21:07 +0800
Subject: [PATCH] fix: replace favicon.ico with icon.png to resolve build error
---
video-claw/video-claw/backend/models/config_model.py | 58 ++++++++++++++++++++++++++++++++++++----------------------
1 files changed, 36 insertions(+), 22 deletions(-)
diff --git a/video-claw/video-claw/backend/models/config_model.py b/video-claw/video-claw/backend/models/config_model.py
index 1523f0e..3132036 100644
--- a/video-claw/video-claw/backend/models/config_model.py
+++ b/video-claw/video-claw/backend/models/config_model.py
@@ -212,25 +212,7 @@
'api_contract_verified': True,
'resolutions': ['720P', '1080P', '2K', '4K'],
'ratios': ['16:9', '9:16', '1:1', '4:3', '3:4']}},
- 'ep-20260622221940-sb69g': {'name': 'Seedream 5.0 (EP)',
- 'provider': 'ark',
- 'family': 'seedream',
- 'type': ['t2i', 'i2i'],
- 'concurrency': 10,
- 'price_per_image': 0.22,
- 'capabilities': {'ability_type': 'image_generation',
- 'ability_types': ['text_to_image',
- 'image_to_image',
- 'reference_image',
- 'high_quality'],
- 'adapter_ability_types': ['text_to_image',
- 'image_to_image',
- 'reference_image'],
- 'input_modalities': ['text', 'image'],
- 'adapter_input_modalities': ['text', 'image'],
- 'api_contract_verified': True,
- 'resolutions': ['720P', '1080P', '2K', '4K'],
- 'ratios': ['16:9', '9:16', '1:1', '4:3', '3:4']}},
+
'doubao-seedream-4-5-251128': {'name': 'Seedream 4.5',
'provider': 'ark',
'family': 'seedream',
@@ -350,7 +332,7 @@
'kling-v3': {'name': 'Kling V3',
'provider': 'kling',
'type': ['video'],
- 'concurrency': 10,
+ 'concurrency': 1,
'price_per_second': 1.0,
'capabilities': {'ability_type': 'image_to_video',
'ability_types': ['text_to_video',
@@ -368,7 +350,7 @@
'kling-v2-6': {'name': 'Kling V2.6',
'provider': 'kling',
'type': ['video'],
- 'concurrency': 10,
+ 'concurrency': 1,
'price_per_second': 0.5,
'capabilities': {'ability_type': 'image_to_video',
'ability_types': ['text_to_video',
@@ -382,7 +364,7 @@
'kling-v2-5-turbo': {'name': 'Kling V2.5 Turbo',
'provider': 'kling',
'type': ['video'],
- 'concurrency': 10,
+ 'concurrency': 1,
'price_per_second': 0.3,
'capabilities': {'ability_type': 'image_to_video',
'ability_types': ['image_to_video'],
@@ -734,3 +716,35 @@
if any(item in types for item in ("t2i", "i2i", "image")):
return "image"
return ""
+
+from config import Config
+
+def _inject_custom_endpoints():
+ eps = set()
+ if Config.IMAGE_IT2I_MODEL and Config.IMAGE_IT2I_MODEL.startswith("ep-"):
+ eps.add(Config.IMAGE_IT2I_MODEL)
+ if Config.IMAGE_T2I_MODEL and Config.IMAGE_T2I_MODEL.startswith("ep-"):
+ eps.add(Config.IMAGE_T2I_MODEL)
+
+ for ep in eps:
+ if ep not in MODEL_CONFIG['models']:
+ MODEL_CONFIG['models'][ep] = {
+ 'name': f'Seedream Custom EP ({ep[-5:]})',
+ 'provider': 'ark',
+ 'family': 'seedream',
+ 'type': ['t2i', 'i2i'],
+ 'concurrency': 10,
+ 'price_per_image': 0.22,
+ 'capabilities': {
+ 'ability_type': 'image_generation',
+ 'ability_types': ['text_to_image', 'image_to_image', 'reference_image', 'high_quality'],
+ 'adapter_ability_types': ['text_to_image', 'image_to_image', 'reference_image'],
+ 'input_modalities': ['text', 'image'],
+ 'adapter_input_modalities': ['text', 'image'],
+ 'api_contract_verified': True,
+ 'resolutions': ['720P', '1080P', '2K', '4K'],
+ 'ratios': ['16:9', '9:16', '1:1', '4:3', '3:4']
+ }
+ }
+
+_inject_custom_endpoints()
--
Gitblit v1.8.0