Skip to content

Commit 14b17c9

Browse files
changed frontend ai api url
1 parent f9c003c commit 14b17c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Frontend/src/App/CodeEditor/AIPanel.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ interface Message {
1212

1313
export 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",

0 commit comments

Comments
 (0)