Skip to content

Commit c93d4d8

Browse files
committed
Fix after changes in tools
1 parent 1395096 commit c93d4d8

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

examples/llm/screens/ChatScreen.tsx

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -58,16 +58,10 @@ export const ChatScreenLLMToolCalling = () => {
5858
},
5959
});
6060

61-
return <ChatScreen llm={llm} tools={true} />;
61+
return <ChatScreen llm={llm} />;
6262
};
6363

64-
export default function ChatScreen({
65-
llm,
66-
tools,
67-
}: {
68-
llm: LLMType;
69-
tools?: boolean;
70-
}) {
64+
export default function ChatScreen({ llm }: { llm: LLMType }) {
7165
const [isTextInputFocused, setIsTextInputFocused] = useState(false);
7266
const [userInput, setUserInput] = useState('');
7367

@@ -83,10 +77,7 @@ export default function ChatScreen({
8377
setUserInput('');
8478
textInputRef.current?.clear();
8579
try {
86-
await llm.sendMessage(
87-
userInput,
88-
tools ? TOOL_DEFINITIONS_PHONE : undefined
89-
);
80+
await llm.sendMessage(userInput);
9081
} catch (e) {
9182
console.error(e);
9283
}

0 commit comments

Comments
 (0)