@ai-sdk/fireworks 2.0.23 → 2.0.24
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/CHANGELOG.md +6 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/docs/26-fireworks.mdx +7 -5
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -174,7 +174,7 @@ var import_provider_utils2 = require("@ai-sdk/provider-utils");
|
|
|
174
174
|
var import_v4 = require("zod/v4");
|
|
175
175
|
|
|
176
176
|
// src/version.ts
|
|
177
|
-
var VERSION = true ? "2.0.
|
|
177
|
+
var VERSION = true ? "2.0.24" : "0.0.0-test";
|
|
178
178
|
|
|
179
179
|
// src/fireworks-provider.ts
|
|
180
180
|
var fireworksErrorSchema = import_v4.z.object({
|
package/dist/index.mjs
CHANGED
package/docs/26-fireworks.mdx
CHANGED
|
@@ -111,10 +111,12 @@ Fireworks language models can also be used in the `streamText` function
|
|
|
111
111
|
|
|
112
112
|
### Completion Models
|
|
113
113
|
|
|
114
|
-
You can create models that call the Fireworks completions API using the `.
|
|
114
|
+
You can create models that call the Fireworks completions API using the `.completionModel()` factory method:
|
|
115
115
|
|
|
116
116
|
```ts
|
|
117
|
-
const model = fireworks.
|
|
117
|
+
const model = fireworks.completionModel(
|
|
118
|
+
'accounts/fireworks/models/firefunction-v1',
|
|
119
|
+
);
|
|
118
120
|
```
|
|
119
121
|
|
|
120
122
|
### Model Capabilities
|
|
@@ -147,10 +149,10 @@ const model = fireworks.completion('accounts/fireworks/models/firefunction-v1');
|
|
|
147
149
|
|
|
148
150
|
## Embedding Models
|
|
149
151
|
|
|
150
|
-
You can create models that call the Fireworks embeddings API using the `.
|
|
152
|
+
You can create models that call the Fireworks embeddings API using the `.embeddingModel()` factory method:
|
|
151
153
|
|
|
152
154
|
```ts
|
|
153
|
-
const model = fireworks.
|
|
155
|
+
const model = fireworks.embeddingModel('nomic-ai/nomic-embed-text-v1.5');
|
|
154
156
|
```
|
|
155
157
|
|
|
156
158
|
You can use Fireworks embedding models to generate embeddings with the `embed` function:
|
|
@@ -160,7 +162,7 @@ import { fireworks } from '@ai-sdk/fireworks';
|
|
|
160
162
|
import { embed } from 'ai';
|
|
161
163
|
|
|
162
164
|
const { embedding } = await embed({
|
|
163
|
-
model: fireworks.
|
|
165
|
+
model: fireworks.embeddingModel('nomic-ai/nomic-embed-text-v1.5'),
|
|
164
166
|
value: 'sunny day at the beach',
|
|
165
167
|
});
|
|
166
168
|
```
|