mirror of
https://github.com/TheSmallHanCat/sora2api.git
synced 2026-02-14 18:14:41 +08:00
feat: 新增图片视频并发设置
新增token导入导出为json chore: 完善token刷新日志输出 fix: 修复自动更新时无法根据AT有效期禁用token问题
This commit is contained in:
@@ -33,6 +33,9 @@ class Token(BaseModel):
|
||||
# 功能开关
|
||||
image_enabled: bool = True # 是否启用图片生成
|
||||
video_enabled: bool = True # 是否启用视频生成
|
||||
# 并发限制
|
||||
image_concurrency: int = -1 # 图片并发数限制,-1表示不限制
|
||||
video_concurrency: int = -1 # 视频并发数限制,-1表示不限制
|
||||
|
||||
class TokenStats(BaseModel):
|
||||
"""Token statistics"""
|
||||
|
||||
Reference in New Issue
Block a user