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:
parent
1554d5e4ab
commit
8eda903185
2 changed files with 21 additions and 27 deletions
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue