Skip to content

Commit b027990

Browse files
committed
fix: type errors with latest ai sdk
1 parent 7c26bc0 commit b027990

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

apps/postgres-new/components/chat.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ export function getInitialMessages(tables: TablesData): Message[] {
3737
content: '',
3838
toolInvocations: [
3939
{
40+
state: 'result',
4041
toolCallId: generateId(),
4142
toolName: 'getDatabaseSchema',
4243
args: {},
@@ -216,6 +217,7 @@ export default function Chat() {
216217
content: '',
217218
toolInvocations: [
218219
{
220+
state: 'result',
219221
toolCallId: generateId(),
220222
toolName: 'requestCsv',
221223
args: {},

apps/postgres-new/lib/hooks.ts

+1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ export function useReportSuggestions({ enabled = true }: UseReportSuggestionsOpt
4848
content: '',
4949
toolInvocations: [
5050
{
51+
state: 'result',
5152
toolCallId: generateId(),
5253
toolName: 'getDatabaseSchema',
5354
args: {},

0 commit comments

Comments
 (0)