fix(provider): 火山方舟图片 - 关闭水印并持久化 CDN 结果 (#241)

This commit is contained in:
MasterChiefCN
2026-08-17 07:51:11 +08:00
committed by GitHub
parent b9949050da
commit ad53047210
4 changed files with 75 additions and 4 deletions

View File

@@ -886,6 +886,7 @@ export async function requestGeneration(config: AiConfig, prompt: string, option
model: requestConfig.model,
prompt: withSystemPrompt(requestConfig, prompt),
n,
watermark: false,
...(normalizedRequestSize ? { [normalizedRequestSize.parameter]: normalizedRequestSize.value } : {}),
}
: {
@@ -980,6 +981,7 @@ export async function requestEdit(config: AiConfig, prompt: string, references:
model: requestConfig.model,
prompt: withSystemPrompt(requestConfig, requestPrompt),
n,
watermark: false,
...(requestSize ? { [requestSize.parameter]: requestSize.value } : {}),
...(images.length === 1 ? { image: images[0] } : images.length > 1 ? { image: images } : {}),
},