@picsart/ai-sdk 6.17.1 → 6.18.1
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/README.md +10 -0
- package/_vendor/workflows-types/index.d.ts +1906 -1733
- package/index.d.ts +36 -0
- package/index.js +137 -52
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -177,6 +177,16 @@ await ai.drive.save({
|
|
|
177
177
|
const saveParams = ai.drive.buildSaveParams(generatedUrl, modelId, modelName, 'video', originalGenerationParams)
|
|
178
178
|
```
|
|
179
179
|
|
|
180
|
+
When the request you submit is not the record you want kept (a render that sends
|
|
181
|
+
only a reference to an earlier job, say), pass the inputs to record as
|
|
182
|
+
`drive.generation`. Custom `attributes` still cannot replace them:
|
|
183
|
+
|
|
184
|
+
```typescript
|
|
185
|
+
await ai.submit(modelId, finalRequest, {
|
|
186
|
+
drive: { name: 'final.mp4', generation: { modelId, params: originalGenerationParams } },
|
|
187
|
+
})
|
|
188
|
+
```
|
|
189
|
+
|
|
180
190
|
Legacy `model`/`prompt`/`textScript` saves are normalized at write time. URL-only
|
|
181
191
|
uploads remain ordinary uploads: without generation context the SDK cannot infer
|
|
182
192
|
model, prompt or settings. Existing Drive files are not backfilled. The backend preserves SDK-supplied metadata; it cannot reconstruct SDK input
|