Skip to content

Commit

Permalink
fix: build error (#275)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yonom authored Jun 21, 2024
1 parent feaeadb commit 8513f9a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .changeset/silly-lemons-arrive.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@assistant-ui/react": patch
"@assistant-ui/react-ai-sdk": patch
---

feat: ToolUI addResult API
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import type { UseChatHelpers } from "@ai-sdk/react";
import type { useChat } from "@ai-sdk/react";
import { useEffect, useInsertionEffect, useState } from "react";
import { VercelAIRuntime } from "../VercelAIRuntime";

export const useVercelUseChatRuntime = (chatHelpers: UseChatHelpers) => {
export const useVercelUseChatRuntime = (
chatHelpers: ReturnType<typeof useChat>,
) => {
const [runtime] = useState(() => new VercelAIRuntime(chatHelpers));

useInsertionEffect(() => {
Expand Down

0 comments on commit 8513f9a

Please sign in to comment.