@ai-sdk/openai-compatible 2.0.47 → 2.0.49
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 +13 -0
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/docs/index.mdx +1 -0
- package/package.json +4 -4
- package/src/chat/openai-compatible-chat-language-model.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @ai-sdk/openai-compatible
|
|
2
2
|
|
|
3
|
+
## 2.0.49
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [942f2f8]
|
|
8
|
+
- @ai-sdk/provider-utils@4.0.28
|
|
9
|
+
|
|
10
|
+
## 2.0.48
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- e40e1d4: fix: accept empty string `role` in streaming delta chunks from OpenAI-compatible providers
|
|
15
|
+
|
|
3
16
|
## 2.0.47
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -970,7 +970,7 @@ var chunkBaseSchema = import_v43.z.looseObject({
|
|
|
970
970
|
choices: import_v43.z.array(
|
|
971
971
|
import_v43.z.object({
|
|
972
972
|
delta: import_v43.z.object({
|
|
973
|
-
role: import_v43.z.enum(["assistant"]).nullish(),
|
|
973
|
+
role: import_v43.z.enum(["assistant", ""]).nullish(),
|
|
974
974
|
content: import_v43.z.string().nullish(),
|
|
975
975
|
// Most openai-compatible models set `reasoning_content`, but some
|
|
976
976
|
// providers serving `gpt-oss` set `reasoning`. See #7866
|
|
@@ -1698,7 +1698,7 @@ async function fileToBlob(file) {
|
|
|
1698
1698
|
var import_provider_utils6 = require("@ai-sdk/provider-utils");
|
|
1699
1699
|
|
|
1700
1700
|
// src/version.ts
|
|
1701
|
-
var VERSION = true ? "2.0.
|
|
1701
|
+
var VERSION = true ? "2.0.49" : "0.0.0-test";
|
|
1702
1702
|
|
|
1703
1703
|
// src/openai-compatible-provider.ts
|
|
1704
1704
|
function createOpenAICompatible(options) {
|