astronomer / ask-astro

An end-to-end LLM reference implementation providing a Q&A interface for Airflow and Astronomer
https://ask.astronomer.io/
Apache License 2.0
201 stars 47 forks source link

check if dictionary has a response key on_get_request #267

Closed sunank200 closed 10 months ago

sunank200 commented 10 months ago

After asking questions in ask.astronomer.io the UI broke after this PR as there is no check for "response" key in the returned dictionary here

Added the check for the "response" key in the dictionary in the API.

Tested with the following screenshot:

Screenshot 2024-01-16 at 4 24 58 PM

close: #266

cloudflare-workers-and-pages[bot] commented 10 months ago

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 0bb3dcc
Status: ✅  Deploy successful!
Preview URL: https://8260a56b.ask-astro.pages.dev
Branch Preview URL: https://fix-get-method.ask-astro.pages.dev

View logs