XAI Streaming Demo

Experience improved XAI streaming with real-time function calling

✨ New Features

🚀 Streaming Improvements

  • • Proper SSE (Server-Sent Events) format
  • • Real-time response streaming
  • • Better error handling
  • • Increased timeout for reasoning models

🔧 Function Calling

  • • Real-time execution notifications
  • • Visual feedback during processing
  • • Streaming with function support
  • • Enhanced error recovery

XAI Streaming Chat (grok-4)

🤖

Start a conversation with XAI Grok!

Function calling enabled with 4 tools

🧪 Try These Examples

Basic Streaming

Try these prompts:

  • • "Explain quantum computing in simple terms"
  • • "What is the meaning of life, the universe, and everything?"
  • • "Write a short story about AI"

Function Calling

Try these prompts:

  • • "What's the weather in San Francisco?"
  • • "Search for recent AI developments"
  • • "Calculate 15% tip on $87.50"
  • • "What time is it in Tokyo?"

📋 Implementation Notes

Streaming Format: Now follows XAI's official SSE format with proper chunk structure

Function Execution: Real-time notifications show when functions are being executed

Error Handling: Improved error recovery and user feedback

Timeout: Extended to 6 minutes for reasoning models as recommended by XAI

This demo showcases the improved XAI integration with proper streaming and function calling.
Check the browser console for detailed streaming logs.