File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -145,7 +145,6 @@ function Chat() {
145145 setChatHistory ( ( prev ) => [ ...prev , newMessage ] ) ;
146146 setMessage ( "" ) ;
147147 setIsLoading ( true ) ;
148-
149148 console . log ( `Using model: ${ selectedModel } ` ) ;
150149
151150 try {
@@ -157,16 +156,19 @@ function Chat() {
157156 )
158157 . join ( "\n" ) ;
159158
160- const response = await fetch ( "https://newserver-ic4m.onrender.com/chat" , {
161- method : "POST" ,
162- headers : {
163- "Content-Type" : "application/json" ,
164- } ,
165- body : JSON . stringify ( {
166- model : selectedModel ,
167- prompt : conversation ,
168- } ) ,
169- } ) ;
159+ const response = await fetch (
160+ "https://olova-research-server.onrender.com/chat" ,
161+ {
162+ method : "POST" ,
163+ headers : {
164+ "Content-Type" : "application/json" ,
165+ } ,
166+ body : JSON . stringify ( {
167+ model : selectedModel ,
168+ prompt : conversation ,
169+ } ) ,
170+ }
171+ ) ;
170172
171173 if ( ! response . ok ) {
172174 throw new Error ( `HTTP error! status: ${ response . status } ` ) ;
You can’t perform that action at this time.
0 commit comments