Add timing decorator to record the response time for GPT requests.
Replace requests with httpx, because requests is a synchronous HTTP request library and is not compatible with async.
Asynchronously execute the steps of getting embeddings and getting chunks to improve the cli endpoint response speed.
Add timing decorator to record the response time for GPT requests. Replace
requests
withhttpx
, because requests is a synchronous HTTP request library and is not compatible with async. Asynchronously execute the steps of getting embeddings and getting chunks to improve the cli endpoint response speed.