@@ -1,6 +1,12 @@
<template>
<div class="dialog-item-container">
- <DialogQuestion v-if="item_type === 'q'" :question="questionInfo" @send="handleSend" @select="handleSelectChat" />
+ <DialogQuestion
+ v-if="item_type === 'q'"
+ :question="questionInfo"
+ :agent_id="agent_id"
+ @send="handleSend"
+ @select="handleSelectChat"
+ />
<DialogAnswer
v-if="item_type === 'a'"
@@ -32,7 +38,8 @@ const props = defineProps({
*/
width: Number,
- answer_action_list: Array
+ answer_action_list: Array,
+ agent_id: String
});
const emit = defineEmits(['stop', 'retry', 'select', 'edit', 'download', 'toSearchPage', 'toShowMindMap', 'send']);
@@ -16,6 +16,7 @@
:width="width"
:key="item.client_custom_unique_id"
:answer_action_list="answer_action_list"
@select="handleSelectChat(item)"
@edit="handleEditChat(item)"
@download="handleDownload(item)"
@@ -8,6 +8,7 @@
<div class="question-main-content-top">
<DialogQuestionActions
class="question-action"
+ v-if="!agent_id"
@copy="handleCopy"
@edit="handleEdit"
></DialogQuestionActions>
@@ -52,7 +53,8 @@ const props = defineProps({
/**
* 用户提问数据
- question: Object
+ question: Object,
const select_btn_visible = computed(() => {
@@ -4,12 +4,12 @@
v-model="text_input"
class="re-textarea-input"
:auto-size="textarea_size_config"
- placeholder="Please enter something"
+ :placeholder="$t('conversation.input_placholder')"
allow-clear
/>
<div class="footer">
- <a-button class="btn" @click="cancel">取消</a-button>
- <a-button class="btn" type="primary" @click="send">发送</a-button>
+ <a-button class="btn" @click="cancel">{{ $t('conversation.btn_cancel') }}</a-button>
+ <a-button class="btn" type="primary" @click="send">{{ $t('conversation.input_confirm') }}</a-button>
</div>
</template>
@@ -1367,13 +1367,12 @@ const sseOnMessage = (ev) => {
if (res_data.message_id) {
minMap_messageId.value = res_data.message_id;
}
- console.log(res_data);
//sse流式结束
if (res_data.event === 'message_end') {
stopStream();
if (props.agent_id) {
- return;
+ // return;
} else {
is_show_right_page.value = true;
loading_mind_map.value = true;