@ai-sdk/openai-compatible 2.0.47 → 2.0.48
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 +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/src/chat/openai-compatible-chat-language-model.ts +1 -1
|
@@ -821,7 +821,7 @@ const chunkBaseSchema = z.looseObject({
|
|
|
821
821
|
z.object({
|
|
822
822
|
delta: z
|
|
823
823
|
.object({
|
|
824
|
-
role: z.enum(['assistant']).nullish(),
|
|
824
|
+
role: z.enum(['assistant', '']).nullish(),
|
|
825
825
|
content: z.string().nullish(),
|
|
826
826
|
// Most openai-compatible models set `reasoning_content`, but some
|
|
827
827
|
// providers serving `gpt-oss` set `reasoning`. See #7866
|