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 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
- model: 'deepseek-ai/deepseek-r1',
117
- input: {
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...