Skip to content
Merged
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
2 changes: 1 addition & 1 deletion ui/src/components/markdown/tool-calls-render/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div class="flex" style="flex-wrap: nowrap; align-items: center">
<el-avatar class="avatar-gradient mr-8" style="height: 20px; width: 20px" shape="square">
<img :src="toolCallsContent.icon || defaultIcon" /> </el-avatar
>{{ toolCallsContent.title || '工具执行' }}工具执行
>{{ toolCallsContent.title || '工具执行' }}
</div>
</template>
<Content :content="toolCallsContent"></Content>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The provided code appears to be valid HTML and a Vue.js component template, with only small syntax and formatting differences compared to a standard version. There are no clear issues or irregularities that would cause problems during execution.

However, I can suggest a couple of minor improvements:

1.) The line breaks after certain elements could be cleaned up. For example:

@@ -5,7 +5,7 @@
             <el-avatar class="avatar-gradient mr-8" style="height: 20px; width: 20px" shape="square"> </el-avatar> {{ toolCallsContent.title || '工具执行' }}

becomes:

<el-avatar class="avatar-gradient mr-8" style="height: 20px; width: 20px" shape="square"><img :src="toolCallsContent.icon || defaultIcon" /></el-avatar>{{ toolCallsContent.title || '工具执行' }}

These changes ensure proper rendering and maintain readability.

Expand Down