wriftai 0.54.0 → 0.56.0
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 +6 -8
- package/dist/index.cjs +328 -169
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +249 -142
- package/dist/index.mjs +328 -170
- package/dist/index.mjs.map +1 -1
- package/dist/wriftai.umd.min.js +2 -2
- package/dist/wriftai.umd.min.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -111,15 +111,13 @@ const wriftai = new WriftAI({
|
|
|
111
111
|
});
|
|
112
112
|
|
|
113
113
|
// Create a prediction against deepseek-ai/deepseek-r1 and wait for it to complete
|
|
114
|
-
const prediction = await wriftai.predictions.create(
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
prompt: 'Summarize quantum computing.',
|
|
119
|
-
},
|
|
114
|
+
const prediction = await wriftai.predictions.create({
|
|
115
|
+
model: 'deepseek-ai/deepseek-r1',
|
|
116
|
+
input: {
|
|
117
|
+
prompt: 'Summarize quantum computing.',
|
|
120
118
|
},
|
|
121
|
-
true, // wait for completion
|
|
122
|
-
);
|
|
119
|
+
wait: true, // wait for completion
|
|
120
|
+
});
|
|
123
121
|
|
|
124
122
|
console.log(prediction.output);
|
|
125
123
|
// Quantum computing uses quantum bits to solve problems...
|