File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Frontend/src/App/CodeEditor Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ interface Message {
1212
1313export default function AskAIPanel ( ) {
1414 // const CODESPACE_API_URL = "http://localhost:4000/codespaces";
15- const CODESPACE_API_URL = "https://www.rtc-app.linkpc.net/codespaces " ;
15+ const CODESPACE_API_URL = "https://www.rtc-app.linkpc.net/api " ;
1616
1717 const { theme } = useTheme ( ) ;
1818 const [ messages , setMessages ] = useState < Message [ ] > ( [ ] ) ;
@@ -52,7 +52,7 @@ export default function AskAIPanel() {
5252 setIsLoading ( true ) ;
5353
5454 try {
55- const response = await fetch ( `${ CODESPACE_API_URL } /api/ chat` , {
55+ const response = await fetch ( `${ CODESPACE_API_URL } /chat` , {
5656 method : "POST" ,
5757 headers : {
5858 "Content-Type" : "application/json" ,
You can’t perform that action at this time.
0 commit comments