File tree Expand file tree Collapse file tree 1 file changed +3
-12
lines changed
Expand file tree Collapse file tree 1 file changed +3
-12
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments