Switch to aiohttp for async HTTP requests in server logic

Replaced synchronous requests with aiohttp to enable non-blocking, async HTTP requests. Updated `smd_detail_article` and `smd_research` to utilize asyncio for parallel execution, significantly improving efficiency for handling multiple API calls. Added aiohttp and asyncio dependencies to requirements.txt.
This commit is contained in:
ThomasTaroni 2025-06-21 20:17:59 +02:00
parent 1554d5e4ab
commit 8eda903185
2 changed files with 21 additions and 27 deletions

View file

@ -10,4 +10,6 @@ pydantic>=2.3.0
# Utility dependencies
loguru>=0.7.0
requests~=2.32.3
requests~=2.32.3
aiohttp~=3.11.18
asyncio~=3.4.3