Open the .env file and add your API keys for the providers you want to use:
# Azure OpenAI (GPT-5)
AZURE_OPENAI_API_KEY=your-actual-32-character-api-key-here
# DeepSeek
DEEPSEEK_API_KEY=your-deepseek-api-key-here
# Grok (xAI)
GROK_API_KEY=your-grok-api-key-hereVisit: http://localhost:3000/api/config-check
This endpoint will show you which providers are properly configured and which models are available.
- Go to
http://localhost:3000 - Try different AI models:
- GPT-5 Chat (Azure OpenAI)
- DeepSeek Chat (DeepSeek AI)
- Grok-3 (xAI)
- Send test messages to each configured model
- Endpoint:
https://asim-me5ucjnb-eastus2.openai.azure.com - Deployment Name:
gpt-5-chat - API Version:
2025-01-01-preview - Status: ✅ Already configured (add API key)
- Endpoint:
https://api.deepseek.com - Model:
deepseek-chat - Status: ⏳ Ready for API key
- Endpoint:
https://api.x.ai/v1 - Model:
grok-3 - Status: ⏳ Ready for API key
- Provider: Azure OpenAI
- Strengths: Advanced reasoning, creative writing, general knowledge
- Features: Natural Language Processing, Code Generation, Creative Writing, Problem Solving
- Color Theme: Teal/Green
- Provider: DeepSeek
- Strengths: Strong reasoning, mathematics, coding tasks
- Features: Advanced Reasoning, Code Generation, Mathematical Problem Solving, Research Assistance
- Color Theme: Red/Orange
- Provider: xAI
- Strengths: Real-time information, witty responses, current events
- Features: Real-time Information, Witty Responses, Current Events, Creative Thinking
- Color Theme: Purple/Violet
- Provider: Azure OpenAI
- Strengths: Text-to-image generation
- Features: Text-to-Image, Style Transfer, Image Editing, Concept Art
- Color Theme: Blue/Purple
- Provider: Azure OpenAI
- Strengths: Programming assistance, debugging
- Features: Code Generation, Bug Detection, Code Optimization, Documentation
- Color Theme: Dark Gray/Black
- Support for 3 different AI providers
- Automatic routing based on model selection
- Provider-specific error handling
- Independent configuration for each provider
- Provider-specific system prompts
- Color-coded model cards and chat interfaces
- Comprehensive configuration validation
- Real-time provider status checking
- 401: Invalid API key
- 429: Rate limit exceeded
- 404: Model deployment not found
- 408: Request timeout
- 500: General server errors
-
Configuration Check
GET http://localhost:3000/api/config-check -
Basic Chat Test
- Go to the chat interface
- Send: "Hello, can you introduce yourself?"
- Verify you get a real GPT-5 response
-
Settings Test
- Open chat settings
- Adjust temperature and max tokens
- Test different configurations
- Your
.envfile is now in.gitignoreto protect your API key - Never commit your actual API key to version control
- The API key is only used server-side, never exposed to the browser
- Double-check your API key in
.env - Ensure no extra spaces or quotes around the key
- Verify the key is active in Azure portal
- Verify the deployment name is exactly
gpt-5-chat - Check if the deployment is active in Azure
- You may need to increase your quota in Azure
- Try reducing the frequency of requests
The application now logs:
- Token usage for each request
- API errors with details
- Configuration status
Check the browser console and server logs for detailed information.
Once basic chat is working:
- Test different conversation lengths
- Try the settings panel
- Test the export functionality
- Experiment with different system prompts
Your FusionAI platform is now ready for real Azure OpenAI integration! 🎉