Andrew McCracken Claude commited on
Commit
1b98923
·
1 Parent(s): 403caa4

Fix API endpoint to use relative URL instead of localhost

Browse files

- Changed fetch URL from 'http://localhost:8000/chat/stream' to '/chat/stream'
- Fixes chat functionality on HF Spaces deployment

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

Files changed (1) hide show
  1. test_interface.html +1 -1
test_interface.html CHANGED
@@ -267,7 +267,7 @@
267
 
268
  try {
269
  // Stream response
270
- const response = await fetch('http://localhost:8000/chat/stream', {
271
  method: 'POST',
272
  headers: {
273
  'Content-Type': 'application/json',
 
267
 
268
  try {
269
  // Stream response
270
+ const response = await fetch('/chat/stream', {
271
  method: 'POST',
272
  headers: {
273
  'Content-Type': 'application/json',