Commit 78ee1f84 authored by 于飞's avatar 于飞

修改报错信息

parent cb0a1fe6
......@@ -84,7 +84,7 @@ async def get_media_datas_by(conv_uid: str, words: str, db: AsyncSession, knownl
if len(datas) > 0:
result = []
corrdata = datas[0]
image_datas = corrdata.get('image_group')
image_datas = corrdata.get('image_group') or []
for image_groups in image_datas:
image_groupid = image_groups.get('group_id')
print(f"===========>image_groupid:{image_groupid}")
......@@ -101,7 +101,7 @@ async def get_media_datas_by(conv_uid: str, words: str, db: AsyncSession, knownl
'local_path': data.get('local_path'), 'remote_path': data.get('remote_path')}
result.append(json_image)
video_datas = corrdata.get('video_group')
video_datas = corrdata.get('video_group') or []
for video_groups in video_datas:
video_groupid = video_groups.get('group_id')
print(f"===========>video_groupid:{video_groupid}")
......@@ -119,7 +119,7 @@ async def get_media_datas_by(conv_uid: str, words: str, db: AsyncSession, knownl
'remote_path': videodata.get('remote_path')}
result.append(json_video)
question_datas = corrdata.get('question_group')
question_datas = corrdata.get('question_group') or []
for question_groups in question_datas:
question_groupid = question_groups.get('group_id')
print(f"===========>question_groupid:{question_groupid}")
......
......@@ -361,7 +361,7 @@ async def chat_completions(
):
#dialogue.select_param 这个参数为 : 知识库名称
logger.info(
f"chat_completions:{dialogue.chat_mode},{dialogue.select_param},{dialogue.model_name}"
f"chat_completions:{dialogue.chat_mode},{dialogue.model_name},==>dialogue:{dialogue}"
)
headers = {
"Content-Type": "text/event-stream",
......
#!/bin/bash
echo Starting...
conda acitvate dbgpt_env1
nohup dbgpt start webserver --port 6006 > /dev/null 2>&1 &
sleep 10
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment