更新import内容

This commit is contained in:
Miyamizu-MitsuhaSang 2025-09-16 19:10:21 +08:00
parent 4be4208278
commit c953a820d1
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
from typing import Tuple, Dict
import aioredis
import redis.asyncio as redis_asyncio
import httpx
import random
import json
@ -90,7 +90,7 @@ async def baidu_translation(query: str, from_lang: str, to_lang: str):
return "\n".join([item["dst"] for item in data["trans_result"]])
redis = aioredis.from_url("redis://localhost", encoding="utf-8", decode_responses=True)
redis = redis_asyncio.from_url("redis://localhost", encoding="utf-8", decode_responses=True)
async def rate_limiter(