Skip to content

Commit ce75d7e

Browse files
committed
Add a warning that tool use is in preview mode.
1 parent e72b661 commit ce75d7e

File tree

1 file changed

+19
-4
lines changed

1 file changed

+19
-4
lines changed

src/renderer/components/Experiment/Interact/ChatPage.tsx

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import {
2-
Button,
3-
FormControl,
2+
Alert,
43
FormLabel,
54
Sheet,
65
Stack,
@@ -9,14 +8,19 @@ import {
98
Modal,
109
ModalDialog,
1110
} from '@mui/joy';
11+
import {
12+
ConstructionIcon,
13+
} from 'lucide-react';
14+
1215
import ChatBubble from './ChatBubble';
1316
import ChatSubmit from './ChatSubmit';
17+
import ChatSettingsOnLeftHandSide from './ChatSettingsOnLeftHandSide';
1418
import * as chatAPI from '../../../lib/transformerlab-api-sdk';
19+
import SystemMessageBox from './SystemMessageBox';
20+
1521
import { useEffect, useState } from 'react';
1622
import { useDebounce } from 'use-debounce';
1723
import useSWR from 'swr';
18-
import SystemMessageBox from './SystemMessageBox';
19-
import ChatSettingsOnLeftHandSide from './ChatSettingsOnLeftHandSide';
2024

2125
// fetcher used by SWR
2226
const fetcher = (url) => fetch(url).then((res) => res.json());
@@ -148,6 +152,17 @@ export default function ChatPage({
148152
>
149153
{enableTools && (
150154
<>
155+
<Alert
156+
variant="outlined"
157+
color="warning"
158+
startDecorator={<ConstructionIcon />}
159+
>
160+
Work In Progress.
161+
This is a preview of tool calling.
162+
We will be expanding this portion of the app in an upcoming release.
163+
This feature will allow a user to add functions that can be
164+
called by the model.
165+
</Alert>
151166
<FormLabel>Available Tools</FormLabel>
152167
<Textarea value={tool_list} />
153168
</>

0 commit comments

Comments
 (0)