发版前提交

This commit is contained in:
ACT丶流星雨 2026-04-11 18:36:51 +08:00
parent 9912f90377
commit 980f705549
4 changed files with 224 additions and 221 deletions

View File

@ -228,8 +228,11 @@ const extractBase64WithHead = (ref: ReferenceList): string => {
const textRequest = (model: TextModel, think: boolean, thinkLevel: 0 | 1 | 2 | 3) => {
if (!vendor.inputValues.apiKey) throw new Error("缺少API Key");
const apiKey = vendor.inputValues.apiKey.replace(/^Bearer\s+/i, "");
const baseUrl = getBaseUrl();
const openaiBaseUrl = `${baseUrl}/v1`;
const extraBody = model.think ? { reasoning_split: true } : {};
return createOpenAI({ baseURL: getBaseUrl(), apiKey, extraBody }).chat(model.modelName);
return createOpenAI({ baseURL: openaiBaseUrl, apiKey, extraBody }).chat(model.modelName);
};
const uploadReference = async (base64: string, fileType: "image" | "audio" | "video"): Promise<ReferenceList> => {

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
{
"name": "toonflow",
"version": "1.1.3",
"version": "1.1.4",
"description": "Toonflow 是一款 AI 短剧漫剧工具,能够利用 AI 技术将小说自动转化为剧本,并结合 AI 生成的图片和视频,实现高效的短剧创作。",
"author": "HBAI-Ltd <ltlctools@outlook.com>",
"license": "Apache-2.0",

File diff suppressed because one or more lines are too long