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 ...@@ -84,7 +84,7 @@ async def get_media_datas_by(conv_uid: str, words: str, db: AsyncSession, knownl
if len(datas) > 0: if len(datas) > 0:
result = [] result = []
corrdata = datas[0] corrdata = datas[0]
image_datas = corrdata.get('image_group') image_datas = corrdata.get('image_group') or []
for image_groups in image_datas: for image_groups in image_datas:
image_groupid = image_groups.get('group_id') image_groupid = image_groups.get('group_id')
print(f"===========>image_groupid:{image_groupid}") print(f"===========>image_groupid:{image_groupid}")
...@@ -101,7 +101,7 @@ async def get_media_datas_by(conv_uid: str, words: str, db: AsyncSession, knownl ...@@ -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')} 'local_path': data.get('local_path'), 'remote_path': data.get('remote_path')}
result.append(json_image) result.append(json_image)
video_datas = corrdata.get('video_group') video_datas = corrdata.get('video_group') or []
for video_groups in video_datas: for video_groups in video_datas:
video_groupid = video_groups.get('group_id') video_groupid = video_groups.get('group_id')
print(f"===========>video_groupid:{video_groupid}") print(f"===========>video_groupid:{video_groupid}")
...@@ -119,7 +119,7 @@ async def get_media_datas_by(conv_uid: str, words: str, db: AsyncSession, knownl ...@@ -119,7 +119,7 @@ async def get_media_datas_by(conv_uid: str, words: str, db: AsyncSession, knownl
'remote_path': videodata.get('remote_path')} 'remote_path': videodata.get('remote_path')}
result.append(json_video) result.append(json_video)
question_datas = corrdata.get('question_group') question_datas = corrdata.get('question_group') or []
for question_groups in question_datas: for question_groups in question_datas:
question_groupid = question_groups.get('group_id') question_groupid = question_groups.get('group_id')
print(f"===========>question_groupid:{question_groupid}") print(f"===========>question_groupid:{question_groupid}")
......
...@@ -361,7 +361,7 @@ async def chat_completions( ...@@ -361,7 +361,7 @@ async def chat_completions(
): ):
#dialogue.select_param 这个参数为 : 知识库名称 #dialogue.select_param 这个参数为 : 知识库名称
logger.info( 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 = { headers = {
"Content-Type": "text/event-stream", "Content-Type": "text/event-stream",
......
#!/bin/bash #!/bin/bash
echo Starting... echo Starting...
conda acitvate dbgpt_env1
nohup dbgpt start webserver --port 6006 > /dev/null 2>&1 & nohup dbgpt start webserver --port 6006 > /dev/null 2>&1 &
sleep 10 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