Skip to content

Commit 4b5968a

Browse files
committed
fix: resolve TypeScript type errors in tool status and AI provider
1 parent c01db6e commit 4b5968a

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

packages/aipex-react/src/components/ai-elements/tool.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,22 @@ const getStatusBadge = (status: ToolUIPart["state"] | "executing") => {
3939
"input-streaming": "Pending",
4040
"input-available": "Running",
4141
executing: "Running",
42+
"approval-requested": "Approval Requested",
43+
"approval-responded": "Approved",
4244
"output-available": "Completed",
4345
"output-error": "Error",
46+
"output-denied": "Denied",
4447
} as const;
4548

4649
const icons = {
4750
"input-streaming": <CircleIcon className="size-4" />,
4851
"input-available": <ClockIcon className="size-4 animate-pulse" />,
4952
executing: <ClockIcon className="size-4 animate-spin" />,
53+
"approval-requested": <ClockIcon className="size-4 text-yellow-600" />,
54+
"approval-responded": <CheckCircleIcon className="size-4 text-blue-600" />,
5055
"output-available": <CheckCircleIcon className="size-4 text-green-600" />,
5156
"output-error": <XCircleIcon className="size-4 text-red-600" />,
57+
"output-denied": <XCircleIcon className="size-4 text-orange-600" />,
5258
} as const;
5359

5460
return (

packages/aipex-react/src/components/settings/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ export function SettingsPage({
633633

634634
// Use AI SDK to make the request (handles all URL construction automatically)
635635
await generateText({
636-
model: provider(aiModel),
636+
model: provider(aiModel) as any,
637637
prompt: "Hi",
638638
});
639639

0 commit comments

Comments
 (0)