seacloud-sdk 0.11.7 → 0.11.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +8 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -9923,6 +9923,8 @@ declare function viduQ2(params: ViduQ2Params): Promise<ViduQ2Resource[]>;
|
|
|
9923
9923
|
interface ViduQ2ReferenceSubject {
|
|
9924
9924
|
/**
|
|
9925
9925
|
* 主体id,在提示词中可以通过 @主体id 的方式使用
|
|
9926
|
+
* 可以使用任意字符串,建议使用有意义的名称(如 'person', 'dog', 'car' 等)
|
|
9927
|
+
* 例如:id: 'girl' 可以在 prompt 中使用 '@girl 在跳舞'
|
|
9926
9928
|
*/
|
|
9927
9929
|
id: string;
|
|
9928
9930
|
/**
|
|
@@ -10061,15 +10063,16 @@ interface ViduQ2I2vReferenceResource {
|
|
|
10061
10063
|
* initSeacloud('your-api-key');
|
|
10062
10064
|
*
|
|
10063
10065
|
* // 推荐方式:使用 subjects(支持多主体精确控制)
|
|
10066
|
+
* // id 可以使用任意字符串,建议使用有意义的名称
|
|
10064
10067
|
* const result = await viduQ2I2vReference({
|
|
10065
|
-
* prompt: '@
|
|
10068
|
+
* prompt: '@person 和 @dog 在公园里一起玩耍',
|
|
10066
10069
|
* subjects: [
|
|
10067
10070
|
* {
|
|
10068
|
-
* id: '
|
|
10071
|
+
* id: 'person', // 使用有意义的 id
|
|
10069
10072
|
* images: ['https://example.com/person.jpg']
|
|
10070
10073
|
* },
|
|
10071
10074
|
* {
|
|
10072
|
-
* id: '
|
|
10075
|
+
* id: 'dog', // 使用有意义的 id
|
|
10073
10076
|
* images: ['https://example.com/dog.jpg']
|
|
10074
10077
|
* }
|
|
10075
10078
|
* ],
|
|
@@ -10080,10 +10083,10 @@ interface ViduQ2I2vReferenceResource {
|
|
|
10080
10083
|
*
|
|
10081
10084
|
* // 多图参考(每个主体最多3张图片)
|
|
10082
10085
|
* const result2 = await viduQ2I2vReference({
|
|
10083
|
-
* prompt: '@
|
|
10086
|
+
* prompt: '@girl 在跳舞',
|
|
10084
10087
|
* subjects: [
|
|
10085
10088
|
* {
|
|
10086
|
-
* id: '
|
|
10089
|
+
* id: 'girl', // id 可以是任意字符串
|
|
10087
10090
|
* images: [
|
|
10088
10091
|
* 'https://example.com/person1.jpg',
|
|
10089
10092
|
* 'https://example.com/person2.jpg',
|