Skip to content

Commit

Permalink
chore (ui): remove experimental_useAssistant export (#3528)
Browse files Browse the repository at this point in the history
  • Loading branch information
lgrammel authored Nov 7, 2024
1 parent 073f282 commit ca3e586
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 10 deletions.
6 changes: 6 additions & 0 deletions .changeset/poor-beds-reflect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@ai-sdk/react': major
'@ai-sdk/vue': major
---

chore (ui): remove experimental_useAssistant export
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,13 @@ Please use the `addToolResult` method instead.
The `streamMode` options has been removed from the `useCompletion` hook.
Please use the `streamProtocol` parameter instead.

### `useAssistant` hook

#### Removed `experimental_useAssistant` export

The `experimental_useAssistant` export has been removed from the `useAssistant` hook.
Please use the `useAssistant` hook directly instead.

## AI SDK Errors

### Removed `isXXXError` static methods
Expand Down
5 changes: 0 additions & 5 deletions packages/react/src/use-assistant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -294,8 +294,3 @@ export function useAssistant({
stop,
};
}

/**
@deprecated Use `useAssistant` instead.
*/
export const experimental_useAssistant = useAssistant;
5 changes: 0 additions & 5 deletions packages/vue/src/use-assistant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,3 @@ export function useAssistant({
stop,
};
}

/**
* @deprecated Use `useAssistant` instead.
*/
export const experimental_useAssistant = useAssistant;

0 comments on commit ca3e586

Please sign in to comment.