Skip to content

Commit

Permalink
更新 Redis 依赖未安装的 Warning 信息 (#848)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dobiichi-Origami authored Oct 29, 2024
1 parent 982461d commit 1ca64ef
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "qianfan"
version = "0.4.10.1"
version = "0.4.11"
description = "文心千帆大模型平台 Python SDK"
authors = []
license = "Apache-2.0"
Expand Down
5 changes: 4 additions & 1 deletion python/qianfan/resources/rate_limiter/redis_rate_limiter.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@
from redis.asyncio import Redis as AsyncRedis
from redis.exceptions import NoScriptError
except ImportError:
log_warn("no redis installed, RedisRateLimiter unavailable")
log_warn(
"No redis installed, RedisRateLimiter unavailable. Ignore this warning if you"
" don't need to use qianfan SDK in distribution environment"
)

from qianfan.resources.rate_limiter.base_rate_limiter import BaseRateLimiter

Expand Down

0 comments on commit 1ca64ef

Please sign in to comment.