修改样式
This commit is contained in:
parent
7f8e28a4af
commit
daaed56dbe
@ -87,13 +87,25 @@ export class HunyuanAI3DProvider implements AI3DProvider {
|
||||
|
||||
// 多视图图片支持
|
||||
if (options?.multiViewImages && options.multiViewImages.length > 0) {
|
||||
// 检查是否包含扩展视角(需要 v3.1)
|
||||
const extendedViewTypes = ['top', 'bottom', 'left_front', 'right_front'];
|
||||
const hasExtendedViews = options.multiViewImages.some(
|
||||
(img) => extendedViewTypes.includes(img.viewType)
|
||||
);
|
||||
|
||||
// 如果有扩展视角,使用模型版本 3.1
|
||||
if (hasExtendedViews) {
|
||||
payload.ModelVersion = '3.1';
|
||||
}
|
||||
|
||||
payload.MultiViewImages = options.multiViewImages.map((img) => ({
|
||||
ViewType: img.viewType,
|
||||
ViewImageUrl: img.imageUrl,
|
||||
}));
|
||||
this.logger.log(
|
||||
`提交图生3D任务(多视图): ${options.multiViewImages.length} 张图片 ` +
|
||||
`[类型: ${options?.generateType || 'Normal'}]`,
|
||||
`[类型: ${options?.generateType || 'Normal'}]` +
|
||||
(hasExtendedViews ? ' [模型版本: 3.1]' : ''),
|
||||
);
|
||||
} else {
|
||||
this.logger.log(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user