mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-07 22:36:02 +00:00
debug: 接口底层添加返回数据debug信息
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
# 定义不同接口请求的模型
|
||||
import threading
|
||||
import asyncio
|
||||
import logging
|
||||
|
||||
import openai
|
||||
|
||||
@@ -23,6 +24,7 @@ class RequestBase:
|
||||
|
||||
try:
|
||||
ret = await self.req_func(**kwargs)
|
||||
logging.debug("接口请求返回:%s", str(ret))
|
||||
return ret
|
||||
except Exception as e:
|
||||
exception = e
|
||||
|
||||
Reference in New Issue
Block a user