MSUSAzureAccelerators / Azure-Cognitive-Search-Azure-OpenAI-Accelerator

Virtual Assistant - GPT Smart Search Engine - Bot Framework + Azure OpenAI + Azure AI Search + Azure SQL + Bing API + Azure Document Intelligence + LangChain + CosmosDB
https://gptsmartsearchapp.azurewebsites.net
MIT License
333 stars 549 forks source link

Notebook 10: missing ./data/openapi.json #56

Closed vykhand closed 6 months ago

vykhand commented 8 months ago

Hi folks, the notebook fails. It is probably best to return the old code:


url = 'https://disease.sh/apidocs/swagger_v3.json'
response = requests.get(url)

# Check if the request was successful
if response.status_code == 200:
    spec = response.json()
else:
    spec = None
    print(f"Failed to retrieve data: Status code {response.status_code}")