Azure-Samples / aisearch-openai-rag-audio

A simple example implementation of the VoiceRAG pattern to power interactive voice generative AI experiences using RAG with Azure AI Search and Azure OpenAI's gpt-4o-realtime-preview model.
https://azure.microsoft.com/products/search
MIT License
211 stars 105 forks source link

Avoid return before hook #29

Closed pamelafox closed 5 days ago

pamelafox commented 5 days ago

I was getting a React error locally, and GitHub Copilot suggested that you need to always declare your hook at top of component, no after an early return. The fix seemed to work.