← Back to Home
Chat Troubleshooter
Use this tool to diagnose and fix issues with your chat functionality
Chat Troubleshooter
Check and fix common issues with your chat setup
Status Checks
Database Connection
Not checked yet
OpenAI Connection
Not checked yet
Common Issues
Missing Database Tables
If you see errors about "relation public.chats does not exist", it means you need to create the database tables.
You can:
- Use the troubleshooter above to automatically create the tables
- Run the SQL script manually in your Supabase SQL Editor
Azure OpenAI Connection Issues
If you're having trouble connecting to Azure OpenAI:
- Check that your Azure OpenAI API key is correct
- Verify that your endpoint URL matches the format
https://your-resource-name.openai.azure.com - Make sure you've deployed the model in Azure and the model name matches
- Try using the test endpoint to see detailed error information
Alternative Chat API
If you can't get Azure OpenAI working, you can use the standard OpenAI API instead:
- Add your OpenAI API key to
.env.localasOPENAI_API_KEY=your-key - Update the ChatInterface component to use
/api/chat-openaiinstead of/api/chat