增加即梦的生图和生视频功能
This commit is contained in:
1 parent
a9a4cdf125
commit
542246e4ce
20 files changed
+1008
-53
No files matched your search
@@ -139,12 +139,12 @@ export function materialContentForProvider(materials: PromptMaterial[], origin:
|
||||
return normalizeMaterials(materials).map((material) => {
|
||||
const url = toAbsoluteUrl(material.url, origin);
|
||||
if (material.type === "video") {
|
||||
return { type: "video_url", video_url: { url }, role: "reference_video", label: material.label };
|
||||
return { type: "video_url", video_url: { url }, role: "reference_video" };
|
||||
}
|
||||
if (material.type === "audio") {
|
||||
return { type: "audio_url", audio_url: { url }, role: "reference_audio", label: material.label };
|
||||
return { type: "audio_url", audio_url: { url }, role: "reference_audio" };
|
||||
}
|
||||
return { type: "image_url", image_url: { url }, role: "reference_image", label: material.label };
|
||||
return { type: "image_url", image_url: { url }, role: "reference_image" };
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user