@golpoai/sdk 0.1.6 → 0.1.7
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.cjs +6 -2
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +6 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -131,7 +131,9 @@ var Golpo = class {
|
|
|
131
131
|
videoType = "long",
|
|
132
132
|
includeWatermark = true,
|
|
133
133
|
logo,
|
|
134
|
-
timing = "1"
|
|
134
|
+
timing = "1",
|
|
135
|
+
useColor = false,
|
|
136
|
+
newScript = null
|
|
135
137
|
} = opts;
|
|
136
138
|
const fields = [
|
|
137
139
|
["prompt", prompt],
|
|
@@ -142,12 +144,14 @@ var Golpo = class {
|
|
|
142
144
|
["style", style],
|
|
143
145
|
["video_type", videoType],
|
|
144
146
|
["include_watermark", String(includeWatermark)],
|
|
145
|
-
["timing", timing]
|
|
147
|
+
["timing", timing],
|
|
148
|
+
["use_color", String(useColor)]
|
|
146
149
|
];
|
|
147
150
|
if (language) fields.push(["language", language]);
|
|
148
151
|
if (voiceInstructions) fields.push(["voice_instructions", voiceInstructions]);
|
|
149
152
|
if (personality1) fields.push(["personality_1", personality1]);
|
|
150
153
|
if (bgMusic) fields.push(["bg_music", bgMusic]);
|
|
154
|
+
if (newScript !== null) fields.push(["new_script", newScript]);
|
|
151
155
|
if (logo) {
|
|
152
156
|
fields.push(["logo_path", logo]);
|
|
153
157
|
}
|
package/dist/index.d.cts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -94,7 +94,9 @@ var Golpo = class {
|
|
|
94
94
|
videoType = "long",
|
|
95
95
|
includeWatermark = true,
|
|
96
96
|
logo,
|
|
97
|
-
timing = "1"
|
|
97
|
+
timing = "1",
|
|
98
|
+
useColor = false,
|
|
99
|
+
newScript = null
|
|
98
100
|
} = opts;
|
|
99
101
|
const fields = [
|
|
100
102
|
["prompt", prompt],
|
|
@@ -105,12 +107,14 @@ var Golpo = class {
|
|
|
105
107
|
["style", style],
|
|
106
108
|
["video_type", videoType],
|
|
107
109
|
["include_watermark", String(includeWatermark)],
|
|
108
|
-
["timing", timing]
|
|
110
|
+
["timing", timing],
|
|
111
|
+
["use_color", String(useColor)]
|
|
109
112
|
];
|
|
110
113
|
if (language) fields.push(["language", language]);
|
|
111
114
|
if (voiceInstructions) fields.push(["voice_instructions", voiceInstructions]);
|
|
112
115
|
if (personality1) fields.push(["personality_1", personality1]);
|
|
113
116
|
if (bgMusic) fields.push(["bg_music", bgMusic]);
|
|
117
|
+
if (newScript !== null) fields.push(["new_script", newScript]);
|
|
114
118
|
if (logo) {
|
|
115
119
|
fields.push(["logo_path", logo]);
|
|
116
120
|
}
|