From e55077a8338329452d85bdb52d9de302c4fa661c Mon Sep 17 00:00:00 2001 From: GinHa <15201596918@163.com> Date: Fri, 24 Jul 2026 12:06:13 +0800 Subject: [PATCH] max_token save 10000 --- video-gen-api/app/config.py | 2 +- video-gen-api/app/services/hot_opening_video_prompt_service.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/video-gen-api/app/config.py b/video-gen-api/app/config.py index 1cd8dc85..7b7600e2 100644 --- a/video-gen-api/app/config.py +++ b/video-gen-api/app/config.py @@ -307,7 +307,7 @@ class Settings(BaseSettings): SHOT_ANALYSIS_ACTIVE_REDIS_ZSET_KEY: str = "vg:celery:shot_analysis:active_index" SHOT_ANALYSIS_LOCK_KEY_PREFIX: str = "vg:lock:shot_analysis" SHOT_ANALYSIS_TEMPERATURE: float = 0.1 - SHOT_ANALYSIS_MAX_TOKENS: int = 5000 + SHOT_ANALYSIS_MAX_TOKENS: int = 10000 SHOT_ANALYSIS_VIDEO_FPS: float = 1.0 SHOT_ANALYSIS_MAX_LOCAL_VIDEO_MB: int = 45 diff --git a/video-gen-api/app/services/hot_opening_video_prompt_service.py b/video-gen-api/app/services/hot_opening_video_prompt_service.py index 7d6d3ada..ecf3ead0 100644 --- a/video-gen-api/app/services/hot_opening_video_prompt_service.py +++ b/video-gen-api/app/services/hot_opening_video_prompt_service.py @@ -1628,7 +1628,7 @@ async def optimize_hot_opening_video_prompt( request_data = { "model": config.model_name, "messages": [{"role": "system", "content": build_system_prompt()}, user_message], - "max_tokens": 6000, + "max_tokens": 10000, "temperature": 0.15, "response_format": {"type": "json_object"}, }