生成记录接口兼容图片类型|CHAT对话生成视频/图片任务API+celery异步模块完成
This commit is contained in:
@@ -58,5 +58,31 @@ class Settings(BaseSettings):
|
||||
|
||||
RATE_LIMIT_ENABLED: bool = True
|
||||
|
||||
# ChatAPI async generation pipeline settings
|
||||
CELERY_BROKER_URL: str = ""
|
||||
CELERY_RESULT_BACKEND: str = ""
|
||||
CHATAPI_REQUEST_TIMEOUT_SECONDS: int = 120
|
||||
CHATAPI_VIDEO_FPS: float = 0.5
|
||||
CHATAPI_ASYNC_MAX_RETRIES: int = 3
|
||||
CHATAPI_ASYNC_RETRY_BACKOFF_SECONDS: int = 30
|
||||
CHATAPI_ASYNC_POLL_INTERVAL_SECONDS: int = 30
|
||||
CHATAPI_ASYNC_IMAGE_DEADLINE_MINUTES: int = 10
|
||||
CHATAPI_ASYNC_VIDEO_DEADLINE_MINUTES: int = 30
|
||||
|
||||
# Distributed provider concurrency limits. 0 means disabled/no-op.
|
||||
ARK_CHAT_PROMPT_MAX_CONCURRENCY: int = 20
|
||||
ARK_IMAGE_CREATE_MAX_CONCURRENCY: int = 10
|
||||
ARK_VIDEO_CREATE_MAX_CONCURRENCY: int = 10
|
||||
ARK_IMAGE_POLL_MAX_CONCURRENCY: int = 50
|
||||
ARK_VIDEO_POLL_MAX_CONCURRENCY: int = 50
|
||||
RESULT_DOWNLOAD_MAX_CONCURRENCY: int = 10
|
||||
PROVIDER_LIMIT_WAIT_TIMEOUT_SECONDS: float = 30.0
|
||||
PROVIDER_LIMIT_TOKEN_TTL_SECONDS: int = 600
|
||||
|
||||
CELERY_DB_POOL_SIZE: int = 1
|
||||
CELERY_DB_MAX_OVERFLOW: int = 1
|
||||
CELERY_DB_POOL_TIMEOUT: int = 30
|
||||
CELERY_DB_POOL_RECYCLE: int = 1800
|
||||
|
||||
|
||||
settings = Settings()
|
||||
|
||||
Reference in New Issue
Block a user