Skip to content

Commit

Permalink
fix (core): remove invalid providerOptions from streamObject onFinish…
Browse files Browse the repository at this point in the history
… callback (#4805)
  • Loading branch information
lgrammel authored Feb 10, 2025
1 parent a58a47e commit 4ee5b6f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .changeset/tasty-students-beg.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'ai': patch
---

fix (core): remove invalid providerOptions from streamObject onFinish callback
7 changes: 1 addition & 6 deletions packages/ai/core/generate-object/stream-object.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,9 @@ Warnings from the model provider (e.g. unsupported settings).
warnings?: CallWarning[];

/**
Additional provider-specific options. They are passed through
Additional provider-specific metadata. They are passed through
to the provider from the AI SDK and enable provider-specific
functionality that can be fully encapsulated in the provider.
*/
providerOptions?: ProviderOptions;

/**
@deprecated Use `providerOptions` instead.
*/
experimental_providerMetadata?: ProviderMetadata;
}) => Promise<void> | void;
Expand Down

0 comments on commit 4ee5b6f

Please sign in to comment.