mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 14:22:55 +08:00
Update data_source.py
This commit is contained in:
parent
185f7d9c31
commit
dcb538a3a9
@ -70,6 +70,8 @@ async def tu_ling(text: str, img_url: str, user_id: int, sess: ClientSession) ->
|
|||||||
"""
|
"""
|
||||||
global index
|
global index
|
||||||
TL_KEY = Config.get_config("ai", "TL_KEY")
|
TL_KEY = Config.get_config("ai", "TL_KEY")
|
||||||
|
if not TL_KEY:
|
||||||
|
return ''
|
||||||
try:
|
try:
|
||||||
if text:
|
if text:
|
||||||
req = {
|
req = {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user