Merge pull request #976 from TimoYoung/main

This commit is contained in:
jxxghp
2026-01-21 17:38:19 +08:00
committed by GitHub
3 changed files with 5 additions and 4 deletions

View File

@@ -26,7 +26,7 @@
"name": "AI字幕自动生成(v2)",
"description": "使用whisper自动生成视频文件字幕,使用大模型翻译字幕成中文。",
"labels": "字幕",
"version": "2.3",
"version": "2.4",
"icon": "autosubtitles.jpeg",
"author": "TimoYoung",
"level": 1,
@@ -38,7 +38,8 @@
"v2.0": "1.引入任务队列 2.支持监听媒体入库自动生成字幕 3.增加任务状态展示界面",
"v2.1": "支持清除历史记录",
"v2.2": "fix",
"v2.3": "支持独立的大模型调用配置"
"v2.3": "支持独立的大模型调用配置",
"v2.4": "适配openai api v1"
}
},
"CustomSites": {

View File

@@ -66,7 +66,7 @@ class AutoSubv2(_PluginBase):
# 主题色
plugin_color = "#2C4F7E"
# 插件版本
plugin_version = "2.3"
plugin_version = "2.4"
# 插件作者
plugin_author = "TimoYoung"
# 作者主页

View File

@@ -92,7 +92,7 @@ class OpenAi:
"content": message
}
]
return openai.ChatCompletion.create(
return self.client.chat.completions.create(
model=self._model,
user=user,
messages=message,