Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ def generate_history_human_message(self, chat_record):
*[{'type': 'image_url',
'image_url': {'url': f'data:image/{base64_image[1]};base64,{base64_image[0]}'}} for
base64_image in image_base64_list],
*[{'type': 'image_url', 'image_url': url} for url in url_list]
*[{'type': 'image_url', 'image_url': {'url': url}} for url in url_list]
])
return HumanMessage(content=chat_record.problem_text)

Expand Down
1 change: 0 additions & 1 deletion apps/users/serializers/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
from common.utils.common import valid_license, password_encrypt, password_verify, get_random_chars
from common.utils.rsa_util import decrypt
from maxkb import settings
from maxkb.const import CONFIG
from maxkb.conf import PROJECT_DIR
from maxkb.const import CONFIG
from system_manage.models import SystemSetting, SettingType, AuthTargetType, WorkspaceUserResourcePermission
Expand Down
2 changes: 1 addition & 1 deletion ui/src/components/execution-detail-card/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@
<el-space wrap>
<template v-for="(f, i) in data.image_list" :key="i">
<el-image
:src="f.url || f.file_id ? `./oss/file/${f.file_id}` : ''"
:src="f.url ? f.url : (f.file_id ? `./oss/file/${f.file_id}` : '')"
alt=""
fit="cover"
style="width: 40px; height: 40px; display: block"
Expand Down
Loading