muhammad1707 commited on
Commit
e7806af
·
1 Parent(s): c6a6b27

Use relative API base for Space deployment

Browse files
Files changed (1) hide show
  1. services/api.ts +1 -1
services/api.ts CHANGED
@@ -1,7 +1,7 @@
1
  // Chat API Service
2
  import { Chat, Message, Document } from '../types';
3
 
4
- const API_BASE = 'http://localhost:7860';
5
 
6
  // Create a new chat
7
  export async function createChat(title?: string): Promise<Chat> {
 
1
  // Chat API Service
2
  import { Chat, Message, Document } from '../types';
3
 
4
+ const API_BASE = '';
5
 
6
  // Create a new chat
7
  export async function createChat(title?: string): Promise<Chat> {