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