stillerman commited on
Commit
25b4947
·
1 Parent(s): fbed48f

remove API base

Browse files
src/components/game-component.tsx CHANGED
@@ -65,7 +65,7 @@ First, analyze each link briefly and how it connects to your goal, then select t
65
  Remember to format your final answer by explicitly writing out the xml number tags like this: <answer>NUMBER</answer>`;
66
  };
67
 
68
- const API_BASE = "http://localhost:8000";
69
 
70
  interface GameComponentProps {
71
  player: "me" | "model";
 
65
  Remember to format your final answer by explicitly writing out the xml number tags like this: <answer>NUMBER</answer>`;
66
  };
67
 
68
+ const API_BASE = "";
69
 
70
  interface GameComponentProps {
71
  player: "me" | "model";
src/components/play-tab.tsx CHANGED
@@ -19,7 +19,7 @@ import {
19
  SelectValue,
20
  } from "@/components/ui/select";
21
 
22
- const API_BASE = "http://localhost:8000/";
23
 
24
  // Available AI models
25
  const aiModels = [
@@ -48,7 +48,7 @@ export default function PlayTab() {
48
  fetchAvailableModels();
49
  const checkServerConnection = async () => {
50
  try {
51
- const response = await fetch(API_BASE);
52
  setIsServerConnected(response.ok);
53
  } catch {
54
  setIsServerConnected(false);
 
19
  SelectValue,
20
  } from "@/components/ui/select";
21
 
22
+ const API_BASE = "";
23
 
24
  // Available AI models
25
  const aiModels = [
 
48
  fetchAvailableModels();
49
  const checkServerConnection = async () => {
50
  try {
51
+ const response = await fetch(API_BASE + "/health");
52
  setIsServerConnected(response.ok);
53
  } catch {
54
  setIsServerConnected(false);