Remove chatdoc (#227)
Co-authored-by: AceDataCloud <office@acedata.cloud>
This commit is contained in:
1 parent
7c25bbd23a
commit
f34a3931df
60 files changed
+42
-6340
No files matched your search
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div class="element">
|
||||
<el-dialog v-model="showInfo" width="500px">
|
||||
<el-dialog v-model="showInfo" width="600px">
|
||||
<div v-if="initializing && application === undefined">
|
||||
<el-skeleton :rows="1" class="text-center">
|
||||
<template #template>
|
||||
@@ -24,11 +24,11 @@
|
||||
>
|
||||
<el-icon class="icon"><check /></el-icon>
|
||||
<application-info :application="app" :show-type="true" :show-id="true" />
|
||||
<el-button round type="primary" @click.stop="onBuyMore(application)">{{
|
||||
$t('common.button.buyMore')
|
||||
}}</el-button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="text-center">
|
||||
<el-button round type="primary" @click="onBuyMore(application)">{{ $t('common.button.buyMore') }}</el-button>
|
||||
</div>
|
||||
<span class="actions">
|
||||
<api-price
|
||||
v-if="showPrice && application?.service?.apis?.[0]?.price"
|
||||
@@ -145,12 +145,14 @@ export default defineComponent({
|
||||
},
|
||||
methods: {
|
||||
onBuyMore(application: IApplication) {
|
||||
this.$router.push({
|
||||
// open in new tab for this url
|
||||
const url = this.$router.resolve({
|
||||
name: ROUTE_CONSOLE_APPLICATION_SUBSCRIBE,
|
||||
params: {
|
||||
id: application.id
|
||||
}
|
||||
});
|
||||
}).href;
|
||||
window.open(url, '_blank');
|
||||
},
|
||||
onCreateCredential(application: IApplication | undefined) {
|
||||
credentialOperator
|
||||
|
||||
@@ -14,12 +14,12 @@
|
||||
v-motion
|
||||
:initial="{ opacity: 0, y: 5 }"
|
||||
:enter="{ opacity: 1, y: 0, scale: 1 }"
|
||||
:delay="200"
|
||||
:duration="300"
|
||||
:delay="300"
|
||||
:duration="400"
|
||||
:layout="true"
|
||||
:transition="{
|
||||
enter: { delay: 0.2, duration: 0.5 },
|
||||
layout: { duration: 0.3, easing: 'ease-in-out' }
|
||||
enter: { delay: 0.3, duration: 0.5 },
|
||||
layout: { duration: 0.4, easing: 'ease-in-out' }
|
||||
}"
|
||||
class="content"
|
||||
>
|
||||
|
||||
@@ -1,40 +0,0 @@
|
||||
<template>
|
||||
<div class="mark"></div>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { defineComponent } from 'vue';
|
||||
|
||||
export default defineComponent({
|
||||
name: 'AnsweringMark',
|
||||
data() {
|
||||
return {};
|
||||
},
|
||||
computed: {
|
||||
conversationId() {
|
||||
return this.$route.params?.conversationId?.toString();
|
||||
}
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
@keyframes blink {
|
||||
0% {
|
||||
opacity: 1;
|
||||
}
|
||||
50% {
|
||||
opacity: 0;
|
||||
}
|
||||
100% {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
.mark {
|
||||
width: 2px;
|
||||
height: 16px;
|
||||
margin-top: 3px;
|
||||
background-color: var(--el-text-color-primary);
|
||||
animation: blink 1s infinite;
|
||||
}
|
||||
</style>
|
||||
@@ -1,200 +0,0 @@
|
||||
<template>
|
||||
<div class="panel">
|
||||
<el-skeleton v-if="conversations === undefined" />
|
||||
<div v-else class="conversations">
|
||||
<div class="conversation" @click="onNewConversation">
|
||||
<div class="icons">
|
||||
<font-awesome-icon icon="fa-solid fa-plus" class="icon" />
|
||||
</div>
|
||||
<div class="title">
|
||||
{{ $t('chatdoc.message.startNewChat') }}
|
||||
</div>
|
||||
</div>
|
||||
<div
|
||||
v-for="(conversation, conversationIndex) in conversations"
|
||||
:key="conversationIndex"
|
||||
:class="{ conversation: true, active: conversation.id === conversationId }"
|
||||
@click="onClick(conversation.id)"
|
||||
>
|
||||
<div class="icons">
|
||||
<font-awesome-icon icon="fa-regular fa-comment" class="icon" />
|
||||
</div>
|
||||
<div class="title">
|
||||
<span v-if="conversation?.deleting">
|
||||
{{ `${$t('chatdoc.message.confirmDelete')}?` }}
|
||||
</span>
|
||||
<span v-else-if="conversation?.editing">
|
||||
<el-input v-model="conversation.title" @keydown.enter="onConfirm(conversation)" />
|
||||
</span>
|
||||
<span v-else-if="conversation?.title || conversation?.messages">{{
|
||||
conversation?.title || conversation?.messages[conversation?.messages.length - 1]?.content
|
||||
}}</span>
|
||||
</div>
|
||||
<div class="operations">
|
||||
<font-awesome-icon
|
||||
v-if="!conversation?.editing && !conversation.deleting"
|
||||
icon="fa-solid fa-edit"
|
||||
class="icon icon-edit"
|
||||
@click.stop="conversation.editing = true"
|
||||
/>
|
||||
<font-awesome-icon
|
||||
v-if="!conversation?.editing && !conversation.deleting"
|
||||
icon="fa-solid fa-trash"
|
||||
class="icon icon-delete"
|
||||
@click.stop="conversation.deleting = true"
|
||||
/>
|
||||
<font-awesome-icon
|
||||
v-if="conversation?.editing || conversation.deleting"
|
||||
icon="fa-solid fa-check"
|
||||
class="icon icon-confirm"
|
||||
@click.stop="onConfirm(conversation)"
|
||||
/>
|
||||
<font-awesome-icon
|
||||
v-if="conversation?.editing || conversation.deleting"
|
||||
icon="fa-solid fa-xmark"
|
||||
class="icon icon-cancel"
|
||||
@click.stop="
|
||||
conversation.editing = false;
|
||||
conversation.deleting = false;
|
||||
"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { defineComponent } from 'vue';
|
||||
import { ElSkeleton, ElInput } from 'element-plus';
|
||||
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
|
||||
import { ROUTE_CHATDOC_CONVERSATION, ROUTE_CHATDOC_CONVERSATION_NEW } from '@/router/constants';
|
||||
import { chatdocOperator } from '@/operators';
|
||||
import { IChatdocRepository, IChatdocConversation } from '@/models';
|
||||
|
||||
export default defineComponent({
|
||||
name: 'SidePanel',
|
||||
components: {
|
||||
ElInput,
|
||||
FontAwesomeIcon,
|
||||
ElSkeleton
|
||||
},
|
||||
props: {},
|
||||
emits: ['click'],
|
||||
computed: {
|
||||
repositoryId() {
|
||||
return this.$route.params?.repositoryId?.toString();
|
||||
},
|
||||
conversationId() {
|
||||
return this.$route.params?.conversationId?.toString();
|
||||
},
|
||||
repository(): IChatdocRepository | undefined {
|
||||
return this.$store.state?.chatdoc?.repositories?.find((repository) => repository.id === this.repositoryId);
|
||||
},
|
||||
conversations() {
|
||||
return this.repository?.conversations;
|
||||
},
|
||||
application() {
|
||||
return this.$store.state.chatdoc.application;
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
async onNewConversation() {
|
||||
this.$router.push({
|
||||
name: ROUTE_CHATDOC_CONVERSATION_NEW,
|
||||
params: {
|
||||
repositoryId: this.repositoryId
|
||||
}
|
||||
});
|
||||
},
|
||||
async onConfirm(conversation: IChatdocConversation) {
|
||||
if (conversation?.deleting) {
|
||||
await chatdocOperator.deleteConversation(conversation.id);
|
||||
await this.$store.dispatch('chat/getConversations');
|
||||
} else if (conversation?.editing) {
|
||||
await chatdocOperator.updateConversation(conversation);
|
||||
await this.$store.dispatch('chat/getConversations');
|
||||
} else {
|
||||
conversation.editing = true;
|
||||
}
|
||||
},
|
||||
onClick(id: string) {
|
||||
if (!id) {
|
||||
return;
|
||||
}
|
||||
this.$router.push({
|
||||
name: ROUTE_CHATDOC_CONVERSATION,
|
||||
params: {
|
||||
repositoryId: this.repositoryId,
|
||||
conversationId: id
|
||||
}
|
||||
});
|
||||
this.$emit('click', id);
|
||||
}
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.panel {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-end;
|
||||
padding: 15px;
|
||||
width: 300px;
|
||||
height: 100%;
|
||||
border-right: 1px solid var(--el-border-color);
|
||||
overflow-y: scroll;
|
||||
|
||||
.conversations {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
.conversation {
|
||||
width: 100%;
|
||||
height: 55px;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
padding: 10px;
|
||||
margin-bottom: 5px;
|
||||
border: 1px dashed var(--el-border-color);
|
||||
line-height: 30px;
|
||||
border-radius: 10px;
|
||||
color: var(--el-text-color-primary);
|
||||
cursor: pointer;
|
||||
|
||||
&.active,
|
||||
&:hover {
|
||||
background-color: var(--el-fill-color-extra-light);
|
||||
}
|
||||
|
||||
.icons {
|
||||
width: 30px;
|
||||
padding-left: 10px;
|
||||
.icon {
|
||||
font-size: 14px;
|
||||
}
|
||||
}
|
||||
.title {
|
||||
flex: 1;
|
||||
font-size: 14px;
|
||||
line-height: 32px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
padding-right: 8px;
|
||||
color: var(--el-text-color-primary);
|
||||
}
|
||||
.operations {
|
||||
width: 40px;
|
||||
color: var(--el-text-color-regular);
|
||||
.icon {
|
||||
cursor: pointer;
|
||||
font-size: 14px;
|
||||
margin-right: 6px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -1,98 +0,0 @@
|
||||
<template>
|
||||
<el-dialog v-model="dialogVisible" width="400px">
|
||||
<el-form ref="form" label-width="60px">
|
||||
<el-form-item :label="$t('chatdoc.field.name')" :prop="form.name">
|
||||
<el-input v-model="form.name" :placeholder="$t('chatdoc.message.inputRepositoryName')" />
|
||||
</el-form-item>
|
||||
<el-form-item :label="$t('chatdoc.field.description')" :prop="form.description">
|
||||
<el-input v-model="form.description" :placeholder="$t('chatdoc.message.inputRepositoryDescription')" />
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" round @click="onSubmit">{{ $t('common.button.create') }}</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</el-dialog>
|
||||
<button class="btn btn-create" @click="dialogVisible = true">
|
||||
<font-awesome-icon :icon="['fas', 'plus']" />
|
||||
</button>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { defineComponent } from 'vue';
|
||||
import { ElButton, ElDialog, ElMessage, ElForm, ElFormItem, ElInput } from 'element-plus';
|
||||
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
|
||||
|
||||
interface IData {
|
||||
dialogVisible: boolean;
|
||||
creating: boolean;
|
||||
form: {
|
||||
name: string;
|
||||
description: string;
|
||||
};
|
||||
}
|
||||
|
||||
export default defineComponent({
|
||||
name: 'CreateRepository',
|
||||
components: {
|
||||
ElButton,
|
||||
ElDialog,
|
||||
ElForm,
|
||||
ElFormItem,
|
||||
ElInput,
|
||||
FontAwesomeIcon
|
||||
},
|
||||
data(): IData {
|
||||
return {
|
||||
dialogVisible: false,
|
||||
creating: false,
|
||||
form: {
|
||||
name: '',
|
||||
description: ''
|
||||
}
|
||||
};
|
||||
},
|
||||
computed: {},
|
||||
methods: {
|
||||
async onSubmit() {
|
||||
if (!this.form.name) {
|
||||
ElMessage.error(this.$t('chatdoc.message.nameRequired'));
|
||||
return;
|
||||
}
|
||||
this.creating = true;
|
||||
this.$store
|
||||
.dispatch('chatdoc/createRepository', {
|
||||
name: this.form.name,
|
||||
description: this.form.description
|
||||
})
|
||||
.then(() => {
|
||||
this.creating = false;
|
||||
ElMessage.success(this.$t('chatdoc.message.createRepositorySuccess'));
|
||||
this.dialogVisible = false;
|
||||
this.$store.dispatch('chatdoc/getRepositories');
|
||||
})
|
||||
.catch(() => {
|
||||
this.creating = false;
|
||||
ElMessage.error(this.$t('chatdoc.message.createRepositoryFailed'));
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.btn.btn-create {
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
border: none;
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
border-radius: 50%;
|
||||
margin-top: 5px;
|
||||
background-color: var(--el-bg-color-page);
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.el-button {
|
||||
border-radius: 20px;
|
||||
}
|
||||
</style>
|
||||
@@ -1,156 +0,0 @@
|
||||
<template>
|
||||
<div class="input-box">
|
||||
<span
|
||||
:class="{
|
||||
btn: true,
|
||||
'btn-send': true,
|
||||
disabled: !question
|
||||
}"
|
||||
@click="onSubmit"
|
||||
>
|
||||
<font-awesome-icon icon="fa-solid fa-location-arrow" class="icon icon-send" />
|
||||
</span>
|
||||
<el-input
|
||||
v-model="questionValue"
|
||||
:disabled="disabled"
|
||||
class="input"
|
||||
type="textarea"
|
||||
:placeholder="$t('chat.message.newMessagePlaceholder')"
|
||||
@keydown.enter.exact.prevent="onSubmit"
|
||||
>
|
||||
</el-input>
|
||||
</div>
|
||||
<p class="info">{{ $t('chat.message.howToUse') }}</p>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { defineComponent } from 'vue';
|
||||
import { ElInput } from 'element-plus';
|
||||
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
|
||||
import { IChatModel } from '@/models';
|
||||
|
||||
export default defineComponent({
|
||||
name: 'InputBox',
|
||||
components: {
|
||||
ElInput,
|
||||
FontAwesomeIcon
|
||||
},
|
||||
props: {
|
||||
disabled: {
|
||||
type: Boolean,
|
||||
required: false,
|
||||
default: false
|
||||
},
|
||||
question: {
|
||||
type: String,
|
||||
required: true
|
||||
}
|
||||
},
|
||||
emits: ['update:question', 'submit'],
|
||||
data() {
|
||||
return {
|
||||
questionValue: this.question,
|
||||
fileList: []
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
model(): IChatModel {
|
||||
return this.$store.state.chat.model;
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
questionValue(val: string) {
|
||||
this.$emit('update:question', val);
|
||||
},
|
||||
question(val: string) {
|
||||
if (val !== this.questionValue) {
|
||||
this.questionValue = val;
|
||||
}
|
||||
},
|
||||
references(val: string[]) {
|
||||
if (val.length === 0) {
|
||||
this.fileList = [];
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
onSubmit() {
|
||||
if (!this.question) {
|
||||
return;
|
||||
}
|
||||
this.$emit('submit');
|
||||
}
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.input-box {
|
||||
.input {
|
||||
textarea {
|
||||
height: auto;
|
||||
max-height: 100px;
|
||||
border: none;
|
||||
background: none;
|
||||
box-shadow: none;
|
||||
resize: none;
|
||||
line-height: 30px;
|
||||
}
|
||||
}
|
||||
.el-upload-list {
|
||||
position: absolute;
|
||||
width: 400px;
|
||||
bottom: 45px;
|
||||
}
|
||||
|
||||
.el-textarea.is-disabled .el-textarea__inner {
|
||||
background-color: initial;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.input-box {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
border: 1px solid var(--el-border-color);
|
||||
border-radius: 10px;
|
||||
background: none;
|
||||
box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.1);
|
||||
.input {
|
||||
border: none;
|
||||
width: calc(100% - 80px);
|
||||
margin-left: 5px;
|
||||
}
|
||||
|
||||
.btn {
|
||||
display: block;
|
||||
z-index: 100;
|
||||
cursor: pointer;
|
||||
position: absolute;
|
||||
top: 7px;
|
||||
&.btn-send {
|
||||
right: 15px;
|
||||
&.disabled {
|
||||
.icon-send {
|
||||
color: var(--el-text-color-disabled);
|
||||
}
|
||||
cursor: not-allowed;
|
||||
}
|
||||
.icon-send {
|
||||
font-size: 16px;
|
||||
color: var(--el-text-color-primary);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.info {
|
||||
display: block;
|
||||
font-size: 12px;
|
||||
color: var(--el-text-color-regular);
|
||||
margin-top: 5px;
|
||||
margin-left: 3px;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
</style>
|
||||
@@ -1,174 +0,0 @@
|
||||
<template>
|
||||
<div
|
||||
:class="{
|
||||
message: true,
|
||||
[message.role as string]: true,
|
||||
hidden: errorText && message.role === 'assistant'
|
||||
}"
|
||||
:role="message.role"
|
||||
>
|
||||
<div class="content">
|
||||
<markdown-renderer :content="message?.content" />
|
||||
<answering-mark v-if="message.state === messageState.PENDING" />
|
||||
</div>
|
||||
<div class="operations">
|
||||
<copy-to-clipboard :content="message.content!" class="btn-copy" />
|
||||
</div>
|
||||
</div>
|
||||
<el-alert v-if="errorText" class="error" :title="errorText" type="error" :closable="false" />
|
||||
<el-button v-if="showBuyMore" round type="primary" class="btn btn-buy" size="small" @click="onBuyMore">
|
||||
{{ $t('common.button.buyMore') }}
|
||||
</el-button>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { defineComponent } from 'vue';
|
||||
import AnsweringMark from './AnsweringMark.vue';
|
||||
import copy from 'copy-to-clipboard';
|
||||
import { ElAlert, ElButton } from 'element-plus';
|
||||
import MarkdownRenderer from '@/components/common/MarkdownRenderer.vue';
|
||||
import { IChatdocMessage, IChatdocMessageState } from '@/models';
|
||||
import CopyToClipboard from '../common/CopyToClipboard.vue';
|
||||
import {
|
||||
ERROR_CODE_API_ERROR,
|
||||
ERROR_CODE_BAD_REQUEST,
|
||||
ERROR_CODE_CONTENT_TOO_LARGE,
|
||||
ERROR_CODE_NOT_APPLIED,
|
||||
ERROR_CODE_TIMEOUT,
|
||||
ERROR_CODE_TOO_MANY_REQUESTS,
|
||||
ERROR_CODE_UNKNOWN,
|
||||
ERROR_CODE_USED_UP,
|
||||
ROLE_ASSISTANT
|
||||
} from '@/constants';
|
||||
|
||||
interface IData {
|
||||
copied: boolean;
|
||||
messageState: typeof IChatdocMessageState;
|
||||
}
|
||||
|
||||
export default defineComponent({
|
||||
name: 'Message',
|
||||
components: {
|
||||
CopyToClipboard,
|
||||
AnsweringMark,
|
||||
MarkdownRenderer,
|
||||
ElAlert,
|
||||
ElButton
|
||||
},
|
||||
props: {
|
||||
message: {
|
||||
type: Object as () => IChatdocMessage,
|
||||
required: true
|
||||
}
|
||||
},
|
||||
emits: ['stop'],
|
||||
data(): IData {
|
||||
return {
|
||||
copied: false,
|
||||
messageState: IChatdocMessageState
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
errorText() {
|
||||
if (!this.message.error || !this.message.error?.code) {
|
||||
return undefined;
|
||||
}
|
||||
switch (this.message.error?.code) {
|
||||
case ERROR_CODE_USED_UP:
|
||||
return this.$t('chatdoc.message.errorUsedUp');
|
||||
case ERROR_CODE_API_ERROR:
|
||||
return this.$t('chatdoc.message.errorApiError');
|
||||
case ERROR_CODE_BAD_REQUEST:
|
||||
return this.$t('chatdoc.message.errorBadRequest');
|
||||
case ERROR_CODE_TIMEOUT:
|
||||
return this.$t('chatdoc.message.errorTimeout');
|
||||
case ERROR_CODE_TOO_MANY_REQUESTS:
|
||||
return this.$t('chatdoc.message.errorTooManyRequests');
|
||||
case ERROR_CODE_CONTENT_TOO_LARGE:
|
||||
return this.$t('chatdoc.message.errorContentTooLarge');
|
||||
case ERROR_CODE_NOT_APPLIED:
|
||||
return this.$t('chatdoc.message.errorNotApplied');
|
||||
case ERROR_CODE_UNKNOWN:
|
||||
default:
|
||||
return this.$t('chatdoc.message.errorUnknown');
|
||||
}
|
||||
},
|
||||
showBuyMore() {
|
||||
return this.message.role === ROLE_ASSISTANT && this.message.error?.code === ERROR_CODE_USED_UP;
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
onCopy() {
|
||||
copy(this.message.content!.toString(), {
|
||||
debug: true
|
||||
});
|
||||
this.copied = true;
|
||||
setTimeout(() => {
|
||||
this.copied = false;
|
||||
}, 3000);
|
||||
},
|
||||
onBuyMore() {}
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.error {
|
||||
width: fit-content;
|
||||
padding: 10px 5px 8px 5px;
|
||||
height: 45px;
|
||||
border-radius: 10px;
|
||||
border-bottom-left-radius: 0;
|
||||
}
|
||||
|
||||
.btn-buy {
|
||||
margin: 10px auto;
|
||||
border-radius: 20px;
|
||||
}
|
||||
.message {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
margin-bottom: 15px;
|
||||
&[role='system'] {
|
||||
display: none;
|
||||
}
|
||||
&.hidden {
|
||||
display: none;
|
||||
}
|
||||
&.assistant {
|
||||
align-items: start;
|
||||
.content {
|
||||
background-color: var(--el-bg-color-page);
|
||||
color: var(--el-text-color-primary);
|
||||
border-bottom-left-radius: 0;
|
||||
}
|
||||
}
|
||||
&.user {
|
||||
align-items: end;
|
||||
.content {
|
||||
background-color: var(--el-color-primary);
|
||||
color: var(--el-color-white);
|
||||
border-bottom-right-radius: 0;
|
||||
}
|
||||
}
|
||||
.content {
|
||||
border-radius: 10px;
|
||||
padding: 8px 15px;
|
||||
max-width: 800px;
|
||||
.image {
|
||||
max-width: 100%;
|
||||
max-height: 300px;
|
||||
margin: 5px 0;
|
||||
border-radius: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
.operations {
|
||||
display: block;
|
||||
.btn-copy {
|
||||
color: var(--el-text-color-regular);
|
||||
font-size: 14px;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -1,192 +0,0 @@
|
||||
<template>
|
||||
<div class="panel">
|
||||
<el-skeleton v-if="loading && repositories === undefined" />
|
||||
<div v-else class="repositories">
|
||||
<div class="repository" @click="onNewRepository">
|
||||
<div class="icons">
|
||||
<font-awesome-icon icon="fa-solid fa-plus" class="icon" />
|
||||
</div>
|
||||
<div class="title">
|
||||
{{ $t('chatdoc.message.startNewChat') }}
|
||||
</div>
|
||||
</div>
|
||||
<div
|
||||
v-for="(repository, repositoryIndex) in repositories"
|
||||
:key="repositoryIndex"
|
||||
:class="{ repository: true, active: repository.id === repositoryId }"
|
||||
@click="onClick(repository.id)"
|
||||
>
|
||||
<div class="icons">
|
||||
<font-awesome-icon icon="fa-regular fa-comment" class="icon" />
|
||||
</div>
|
||||
<div class="title">
|
||||
<span v-if="repository?.deleting">
|
||||
{{ `${$t('chatdoc.message.confirmDelete')}?` }}
|
||||
</span>
|
||||
<span v-else-if="repository?.editing">
|
||||
<el-input v-model="repository.title" @keydown.enter="onConfirm(repository)" />
|
||||
</span>
|
||||
<span v-else-if="repository?.title || repository?.messages">{{
|
||||
repository?.title || repository?.messages[repository?.messages.length - 1]?.content
|
||||
}}</span>
|
||||
</div>
|
||||
<div class="operations">
|
||||
<font-awesome-icon
|
||||
v-if="!repository?.editing && !repository.deleting"
|
||||
icon="fa-solid fa-edit"
|
||||
class="icon icon-edit"
|
||||
@click.stop="repository.editing = true"
|
||||
/>
|
||||
<font-awesome-icon
|
||||
v-if="!repository?.editing && !repository.deleting"
|
||||
icon="fa-solid fa-trash"
|
||||
class="icon icon-delete"
|
||||
@click.stop="repository.deleting = true"
|
||||
/>
|
||||
<font-awesome-icon
|
||||
v-if="repository?.editing || repository.deleting"
|
||||
icon="fa-solid fa-check"
|
||||
class="icon icon-confirm"
|
||||
@click.stop="onConfirm(repository)"
|
||||
/>
|
||||
<font-awesome-icon
|
||||
v-if="repository?.editing || repository.deleting"
|
||||
icon="fa-solid fa-xmark"
|
||||
class="icon icon-cancel"
|
||||
@click.stop="
|
||||
repository.editing = false;
|
||||
repository.deleting = false;
|
||||
"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { defineComponent } from 'vue';
|
||||
import { ElSkeleton, ElInput } from 'element-plus';
|
||||
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
|
||||
import { ROUTE_CHAT_CONVERSATION_NEW } from '@/router/constants';
|
||||
import { Status } from '@/store/common/models';
|
||||
import { IChatdocRepository } from '@/models';
|
||||
|
||||
export default defineComponent({
|
||||
name: 'SidePanel',
|
||||
components: {
|
||||
ElInput,
|
||||
FontAwesomeIcon,
|
||||
ElSkeleton
|
||||
},
|
||||
props: {},
|
||||
emits: ['click'],
|
||||
computed: {
|
||||
repositoryId() {
|
||||
return this.$route.params?.id?.toString();
|
||||
},
|
||||
repositories() {
|
||||
return this.$store.state.chatdoc.repositories;
|
||||
},
|
||||
applications() {
|
||||
return this.$store.state.chatdoc.applications;
|
||||
},
|
||||
loading() {
|
||||
return this.$store.state.chatdoc.getRepositoriesStatus === Status.Request;
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
async onNewRepository() {
|
||||
this.$router.push({
|
||||
name: ROUTE_CHAT_CONVERSATION_NEW
|
||||
});
|
||||
},
|
||||
async onConfirm(repository: IChatdocRepository) {
|
||||
// if (repository?.deleting) {
|
||||
// await chatdocOperator.deleteRepository(repository.id);
|
||||
// await this.$store.dispatch('chatdoc/getRepositories');
|
||||
// } else if (repository?.editing) {
|
||||
// await chatdocOperator.updateRepository(repository);
|
||||
// await this.$store.dispatch('chatdoc/getRepositories');
|
||||
// } else {
|
||||
// repository.editing = true;
|
||||
// }
|
||||
},
|
||||
onClick(id: string) {
|
||||
if (!id) {
|
||||
return;
|
||||
}
|
||||
this.$router.push({
|
||||
name: ROUTE_CHAT_CONVERSATION_NEW,
|
||||
params: {
|
||||
repositoryId: this.repositoryId
|
||||
}
|
||||
});
|
||||
this.$emit('click', id);
|
||||
}
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.panel {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-end;
|
||||
padding: 15px;
|
||||
width: 300px;
|
||||
height: 100%;
|
||||
border-right: 1px solid #eee;
|
||||
overflow-y: scroll;
|
||||
|
||||
.repositories {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
.repository {
|
||||
width: 100%;
|
||||
height: 55px;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
padding: 10px;
|
||||
margin-bottom: 5px;
|
||||
border: 1px dashed hsl(0, 0%, 93%);
|
||||
line-height: 30px;
|
||||
border-radius: 10px;
|
||||
color: #666;
|
||||
cursor: pointer;
|
||||
|
||||
&.active,
|
||||
&:hover {
|
||||
background-color: #eee;
|
||||
}
|
||||
|
||||
.icons {
|
||||
width: 30px;
|
||||
padding-left: 10px;
|
||||
.icon {
|
||||
font-size: 14px;
|
||||
}
|
||||
}
|
||||
.title {
|
||||
flex: 1;
|
||||
font-size: 14px;
|
||||
line-height: 32px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
padding-right: 8px;
|
||||
color: #666;
|
||||
}
|
||||
.operations {
|
||||
width: 40px;
|
||||
.icon {
|
||||
cursor: pointer;
|
||||
font-size: 14px;
|
||||
margin-right: 6px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -1,112 +0,0 @@
|
||||
<template>
|
||||
<el-dialog v-model="dialogVisible">
|
||||
<el-upload
|
||||
v-model:file-list="fileList"
|
||||
accept=".docx,.doc,.pdf,.txt,.csv,.enex,.epub,.eml,.html,.htm,.shtml,.md,.odt,.ppt,.pptx,.txt"
|
||||
drag
|
||||
:class="{
|
||||
upload: true
|
||||
}"
|
||||
name="file"
|
||||
:show-file-list="true"
|
||||
:limit="1"
|
||||
:multiple="false"
|
||||
:action="uploadUrl"
|
||||
:on-exceed="onExceed"
|
||||
:on-error="onError"
|
||||
:on-success="onSuccess"
|
||||
:headers="headers"
|
||||
>
|
||||
<el-icon v-if="!learning" class="el-icon--upload"><upload-filled /></el-icon>
|
||||
<div v-if="!learning" class="el-upload__text">
|
||||
<p>{{ $t('chatdoc.message.dragOrClickToUpload') }}</p>
|
||||
<p>{{ $t('chatdoc.message.supportedFiles') }}</p>
|
||||
</div>
|
||||
<div v-if="learning">{{ $t('chatdoc.message.learningDocument') }}</div>
|
||||
</el-upload>
|
||||
</el-dialog>
|
||||
<el-button type="primary" round @click="dialogVisible = true">{{ $t('chatdoc.button.uploadDocuments') }}</el-button>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { defineComponent } from 'vue';
|
||||
import { ElButton, ElDialog, ElUpload, ElIcon, ElMessage, UploadFiles } from 'element-plus';
|
||||
import { UploadFilled } from '@element-plus/icons-vue';
|
||||
import { getBaseUrlPlatform } from '@/utils';
|
||||
|
||||
interface IData {
|
||||
dialogVisible: boolean;
|
||||
fileList: UploadFiles;
|
||||
learning: boolean;
|
||||
uploadUrl: string;
|
||||
}
|
||||
|
||||
export default defineComponent({
|
||||
name: 'UploadDocument',
|
||||
components: {
|
||||
ElButton,
|
||||
ElDialog,
|
||||
ElUpload,
|
||||
ElIcon,
|
||||
UploadFilled
|
||||
},
|
||||
data(): IData {
|
||||
return {
|
||||
dialogVisible: false,
|
||||
fileList: [],
|
||||
learning: false,
|
||||
uploadUrl: getBaseUrlPlatform() + '/api/v1/files/'
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
headers() {
|
||||
return {
|
||||
Authorization: `Bearer ${this.$store.state.token.access}`
|
||||
};
|
||||
},
|
||||
urls(): string[] {
|
||||
// @ts-ignore
|
||||
return this.fileList.map((file: UploadFile) => file?.response?.file_url);
|
||||
}
|
||||
},
|
||||
async mounted() {},
|
||||
methods: {
|
||||
onExceed() {
|
||||
ElMessage.warning(this.$t('chatdoc.message.uploadDocumentsExceed'));
|
||||
},
|
||||
onError() {
|
||||
ElMessage.error(this.$t('chatdoc.message.uploadDocumentsError'));
|
||||
},
|
||||
async onSuccess() {
|
||||
ElMessage.success(this.$t('chatdoc.message.uploadDocumentsSuccess'));
|
||||
ElMessage.info(this.$t('chatdoc.message.startCreateDocument'));
|
||||
this.learning = true;
|
||||
this.$store
|
||||
.dispatch('chatdoc/createDocument', {
|
||||
repositoryId: this.$route.params.repositoryId,
|
||||
fileUrl: this.urls[0],
|
||||
fileName: this.fileList[0].name
|
||||
})
|
||||
.then(() => {
|
||||
ElMessage.success(this.$t('chatdoc.message.createDocumentSuccess'));
|
||||
this.dialogVisible = false;
|
||||
this.$store.dispatch('chatdoc/getDocuments', { repositoryId: this.$route.params.repositoryId });
|
||||
this.$store.dispatch('chatdoc/getApplications');
|
||||
})
|
||||
.catch(() => {
|
||||
ElMessage.error(this.$t('chatdoc.message.createDocumentError'));
|
||||
})
|
||||
.finally(() => {
|
||||
this.fileList = [];
|
||||
this.learning = false;
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.el-button {
|
||||
border-radius: 20px;
|
||||
}
|
||||
</style>
|
||||
@@ -98,10 +98,10 @@ export default defineComponent({
|
||||
},
|
||||
methods: {
|
||||
onExceed() {
|
||||
ElMessage.warning(this.$t('chatdoc.message.uploadDocumentsExceed'));
|
||||
ElMessage.warning(this.$t('qrart.message.uploadDocumentsExceed'));
|
||||
},
|
||||
onError() {
|
||||
ElMessage.error(this.$t('chatdoc.message.uploadDocumentsError'));
|
||||
ElMessage.error(this.$t('qrart.message.uploadDocumentsError'));
|
||||
},
|
||||
onSetContentImageUrl() {
|
||||
const url = this.urls?.[0];
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
export const CHATDOC_SERVICE_ID = '5d732942-4d44-48be-958e-dd8474d8aa8d';
|
||||
@@ -3,7 +3,6 @@ export * from './errorStatus';
|
||||
export * from './endpoint';
|
||||
export * from './action';
|
||||
export * from './chat';
|
||||
export * from './chatdoc';
|
||||
export * from './midjourney';
|
||||
export * from './qrart';
|
||||
export * from './luma';
|
||||
|
||||
@@ -1,198 +0,0 @@
|
||||
{
|
||||
"button.uploadDocuments": {
|
||||
"message": "رفع المستندات",
|
||||
"description": "نص الزر الذي يسمح للمستخدم برفع المستندات"
|
||||
},
|
||||
"field.fileName": {
|
||||
"message": "اسم الملف",
|
||||
"description": "اسم الملف للمستند المرفوع"
|
||||
},
|
||||
"field.createdAt": {
|
||||
"message": "تاريخ الإنشاء",
|
||||
"description": "وقت رفع المستند"
|
||||
},
|
||||
"field.fileExtension": {
|
||||
"message": "نوع الملف",
|
||||
"description": "نوع الملف للمستند المرفوع"
|
||||
},
|
||||
"field.fileUrl": {
|
||||
"message": "رابط الملف",
|
||||
"description": "الرابط للمستند المرفوع"
|
||||
},
|
||||
"field.fileSize": {
|
||||
"message": "حجم الملف",
|
||||
"description": "حجم المستند المرفوع"
|
||||
},
|
||||
"field.state": {
|
||||
"message": "الحالة",
|
||||
"description": "حالة معالجة المستند"
|
||||
},
|
||||
"field.stateProcessing": {
|
||||
"message": "قيد المعالجة",
|
||||
"description": "المستند قيد المعالجة"
|
||||
},
|
||||
"field.stateCompleted": {
|
||||
"message": "تمت المعالجة",
|
||||
"description": "تمت معالجة المستند بنجاح"
|
||||
},
|
||||
"field.stateFailed": {
|
||||
"message": "فشلت المعالجة",
|
||||
"description": "فشلت معالجة المستند"
|
||||
},
|
||||
"field.name": {
|
||||
"message": "الاسم",
|
||||
"description": "اسم المستند"
|
||||
},
|
||||
"field.description": {
|
||||
"message": "الوصف",
|
||||
"description": "وصف المستند"
|
||||
},
|
||||
"message.introductionForKnowledge": {
|
||||
"message": "يمكن إضافة المستندات إلى قاعدة المعرفة، وسيتمكن الروبوت من استخدام المعلومات الموجودة فيها عند الرد.",
|
||||
"description": "معلومات مقدمة عن قاعدة المعرفة"
|
||||
},
|
||||
"message.introductionForRepository": {
|
||||
"message": "قاعدة المعرفة هي مجموعة من المستندات، يمكنك إضافة مستندات إليها. سيرد الروبوت بالمعلومات من الوثائق في قاعدة المعرفة.",
|
||||
"description": "معلومات مقدمة عن قاعدة المعرفة"
|
||||
},
|
||||
"message.uploadDocumentsExceed": {
|
||||
"message": "تجاوز عدد المستندات المرفوعة الحد المسموح به",
|
||||
"description": "رسالة خطأ عند تجاوز عدد المستندات المرفوعة الحد المسموح به"
|
||||
},
|
||||
"message.uploadDocumentsError": {
|
||||
"message": "فشل رفع المستندات",
|
||||
"description": "رسالة خطأ عند فشل رفع المستندات"
|
||||
},
|
||||
"message.uploadDocumentsSuccess": {
|
||||
"message": "تم رفع المستندات بنجاح",
|
||||
"description": "رسالة نجاح عند رفع المستندات بنجاح"
|
||||
},
|
||||
"message.createDocumentSuccess": {
|
||||
"message": "تم إنشاء المستند بنجاح",
|
||||
"description": "رسالة نجاح عند إنشاء المستند بنجاح"
|
||||
},
|
||||
"message.startCreateDocument": {
|
||||
"message": "بدء معالجة المستند...",
|
||||
"description": "معلومات عند بدء معالجة المستند"
|
||||
},
|
||||
"message.createDocumentError": {
|
||||
"message": "فشل معالجة المستند",
|
||||
"description": "رسالة خطأ عند فشل معالجة المستند"
|
||||
},
|
||||
"message.dragOrClickToUpload": {
|
||||
"message": "اسحب أو انقر لرفع المستندات",
|
||||
"description": "معلومات لرفع المستندات عن طريق السحب أو النقر"
|
||||
},
|
||||
"message.learningDocument": {
|
||||
"message": "قيد المعالجة، يرجى الانتظار...",
|
||||
"description": "معلومات عند معالجة المستند"
|
||||
},
|
||||
"message.startNewChat": {
|
||||
"message": "بدء محادثة جديدة",
|
||||
"description": "معلومات عند بدء محادثة جديدة"
|
||||
},
|
||||
"message.errorApiError": {
|
||||
"message": "فشل في الاستجابة، يرجى المحاولة لاحقًا",
|
||||
"description": "رسالة خطأ عند فشل الاستجابة"
|
||||
},
|
||||
"message.errorBadRequest": {
|
||||
"message": "تنسيق محتوى الطلب غير صحيح، يرجى إعادة طرح السؤال",
|
||||
"description": "رسالة خطأ عند عدم صحة تنسيق محتوى الطلب"
|
||||
},
|
||||
"message.errorNoConversation": {
|
||||
"message": "محتوى المحادثة غير موجود أو منتهي، يرجى بدء محادثة جديدة",
|
||||
"description": "رسالة خطأ عند عدم وجود محتوى مشابه أو انتهائه"
|
||||
},
|
||||
"message.errorContentTooLarge": {
|
||||
"message": "محتوى السؤال طويل جداً، يرجى تقصيره ثم المحاولة مرة أخرى",
|
||||
"description": "رسالة خطأ عند طول محتوى السؤال"
|
||||
},
|
||||
"message.errorTooManyRequests": {
|
||||
"message": "لقد قمت بعمليات كثيرة جداً، يرجى المحاولة لاحقًا",
|
||||
"description": "رسالة خطأ عند كثرة العمليات"
|
||||
},
|
||||
"message.errorUsedUp": {
|
||||
"message": "لقد reached the limit on your plan, please purchase more capacity to continue",
|
||||
"description": "رسالة خطأ عند الوصول إلى حد الاستخدام في الخطة"
|
||||
},
|
||||
"message.errorUnknown": {
|
||||
"message": "حدث خطأ غير معروف في الخادم، يرجى المحاولة لاحقًا أو الاتصال بخدمة العملاء",
|
||||
"description": "رسالة خطأ عند حدوث خطأ غير معروف في الخادم"
|
||||
},
|
||||
"message.errorTimeout": {
|
||||
"message": "انتهت مدة الرد، يرجى المحاولة لاحقًا",
|
||||
"description": "رسالة خطأ عند انتهاء مدة الرد"
|
||||
},
|
||||
"message.errorNotApplied": {
|
||||
"message": "لم تقم بتقديم طلب لهذه الخدمة، يرجى تقديم طلب ثم المتابعة للسؤال",
|
||||
"description": "رسالة خطأ عند عدم تقديم الطلب للخدمة"
|
||||
},
|
||||
"message.confirmDelete": {
|
||||
"message": "تأكيد الحذف",
|
||||
"description": "معلومات لتأكيد الحذف"
|
||||
},
|
||||
"message.howToUse": {
|
||||
"message": "اضغط على Shift+Enter لعمل سطر جديد",
|
||||
"description": "معلومات حول كيفية عمل سطر جديد"
|
||||
},
|
||||
"message.createRepositorySuccess": {
|
||||
"message": "تم إنشاء قاعدة المعرفة بنجاح",
|
||||
"description": "رسالة نجاح عند إنشاء قاعدة المعرفة بنجاح"
|
||||
},
|
||||
"message.createRepositoryFailed": {
|
||||
"message": "فشل إنشاء قاعدة المعرفة",
|
||||
"description": "رسالة خطأ عند فشل إنشاء قاعدة المعرفة"
|
||||
},
|
||||
"message.deleteRepositorySuccess": {
|
||||
"message": "تم حذف قاعدة المعرفة بنجاح",
|
||||
"description": "رسالة نجاح عند حذف قاعدة المعرفة بنجاح"
|
||||
},
|
||||
"message.deleteDocumentSuccess": {
|
||||
"message": "تم حذف المستند بنجاح",
|
||||
"description": "رسالة نجاح عند حذف المستند بنجاح"
|
||||
},
|
||||
"message.currentRepository": {
|
||||
"message": "قاعدة المعرفة الحالية",
|
||||
"description": "معلومات حول عرض قاعدة المعرفة الحالية"
|
||||
},
|
||||
"message.nameRequired": {
|
||||
"message": "الاسم لا يمكن أن يكون فارغًا",
|
||||
"description": "رسالة خطأ عند كون الاسم فارغًا"
|
||||
},
|
||||
"message.inputRepositoryName": {
|
||||
"message": "اسم قاعدة المعرفة",
|
||||
"description": "نص الموجه لادخال اسم قاعدة المعرفة"
|
||||
},
|
||||
"message.inputRepositoryDescription": {
|
||||
"message": "اكتب وصفًا لمستودع المعرفة الخاص بك",
|
||||
"description": "نص مكان الإدخال لوصف مستودع المعرفة"
|
||||
},
|
||||
"message.supportedFiles": {
|
||||
"message": "أنواع الملفات المدعومة: .docx, .doc, .pdf, .txt, .csv, .enex, .epub, .eml, .html, .htm, .shtml, .md, .odt, .ppt, .pptx",
|
||||
"description": "معلومات عن أنواع الملفات المدعومة"
|
||||
},
|
||||
"nav.chat": {
|
||||
"message": "دردشة",
|
||||
"description": "عنصر تنقل للدردشة"
|
||||
},
|
||||
"nav.setting": {
|
||||
"message": "إعدادات",
|
||||
"description": "عنصر تنقل للإعدادات"
|
||||
},
|
||||
"nav.manage": {
|
||||
"message": "إدارة",
|
||||
"description": "عنصر تنقل للإدارة"
|
||||
},
|
||||
"title.manage": {
|
||||
"message": "إدارة مستودع المعرفة",
|
||||
"description": "عنوان إدارة مستودع المعرفة"
|
||||
},
|
||||
"title.createRepository": {
|
||||
"message": "إنشاء مستودع معرفة",
|
||||
"description": "عنوان إنشاء مستودع المعرفة"
|
||||
},
|
||||
"title.repositories": {
|
||||
"message": "قائمة مستودعات المعرفة",
|
||||
"description": "عنوان قائمة مستودعات المعرفة"
|
||||
}
|
||||
}
|
||||
@@ -1,198 +0,0 @@
|
||||
{
|
||||
"button.uploadDocuments": {
|
||||
"message": "Dokumente hochladen",
|
||||
"description": "Button-Text, der es dem Benutzer ermöglicht, Dokumente hochzuladen"
|
||||
},
|
||||
"field.fileName": {
|
||||
"message": "Dateiname",
|
||||
"description": "Der Dateiname des hochgeladenen Dokuments"
|
||||
},
|
||||
"field.createdAt": {
|
||||
"message": "Erstellungszeit",
|
||||
"description": "Zeitpunkt, an dem das Dokument hochgeladen wurde"
|
||||
},
|
||||
"field.fileExtension": {
|
||||
"message": "Dateityp",
|
||||
"description": "Der Dateityp des hochgeladenen Dokuments"
|
||||
},
|
||||
"field.fileUrl": {
|
||||
"message": "Datei-Link",
|
||||
"description": "Der Link zum hochgeladenen Dokument"
|
||||
},
|
||||
"field.fileSize": {
|
||||
"message": "Dateigröße",
|
||||
"description": "Die Größe des hochgeladenen Dokuments"
|
||||
},
|
||||
"field.state": {
|
||||
"message": "Status",
|
||||
"description": "Der Verarbeitungsstatus des Dokuments"
|
||||
},
|
||||
"field.stateProcessing": {
|
||||
"message": "Wird bearbeitet",
|
||||
"description": "Dokument wird verarbeitet"
|
||||
},
|
||||
"field.stateCompleted": {
|
||||
"message": "Bearbeitung abgeschlossen",
|
||||
"description": "Die Verarbeitung des Dokuments war erfolgreich"
|
||||
},
|
||||
"field.stateFailed": {
|
||||
"message": "Verarbeitung fehlgeschlagen",
|
||||
"description": "Die Verarbeitung des Dokuments ist fehlgeschlagen"
|
||||
},
|
||||
"field.name": {
|
||||
"message": "Name",
|
||||
"description": "Der Name des Dokuments"
|
||||
},
|
||||
"field.description": {
|
||||
"message": "Beschreibung",
|
||||
"description": "Die Beschreibung des Dokuments"
|
||||
},
|
||||
"message.introductionForKnowledge": {
|
||||
"message": "Dokumente können zur Wissensdatenbank hinzugefügt werden, die Roboterantworten können auf Wissen aus der Wissensdatenbank zurückgreifen.",
|
||||
"description": "Einführungstext zur Wissensdatenbank"
|
||||
},
|
||||
"message.introductionForRepository": {
|
||||
"message": "Die Wissensdatenbank ist eine Sammlung von Dokumenten, zu der Sie Dokumente hinzufügen können. Roboterantworten werden aus den Dokumenten in der Wissensdatenbank generiert.",
|
||||
"description": "Einführungstext zur Wissensdatenbank"
|
||||
},
|
||||
"message.uploadDocumentsExceed": {
|
||||
"message": "Die Anzahl der hochgeladenen Dokumente überschreitet das Limit",
|
||||
"description": "Fehlermeldung, wenn die Anzahl der hochgeladenen Dokumente das Limit überschreitet"
|
||||
},
|
||||
"message.uploadDocumentsError": {
|
||||
"message": "Fehler beim Hochladen der Dokumente",
|
||||
"description": "Fehlermeldung, wenn das Hochladen der Dokumente fehlschlägt"
|
||||
},
|
||||
"message.uploadDocumentsSuccess": {
|
||||
"message": "Dokumente erfolgreich hochgeladen",
|
||||
"description": "Erfolgsnachricht, wenn das Hochladen der Dokumente erfolgreich war"
|
||||
},
|
||||
"message.createDocumentSuccess": {
|
||||
"message": "Dokument erfolgreich erstellt",
|
||||
"description": "Erfolgsnachricht, wenn das Dokument erfolgreich erstellt wurde"
|
||||
},
|
||||
"message.startCreateDocument": {
|
||||
"message": "Dokumentenbearbeitung beginnt...",
|
||||
"description": "Nachricht, wenn die Dokumentenbearbeitung startet"
|
||||
},
|
||||
"message.createDocumentError": {
|
||||
"message": "Fehler beim Erstellen des Dokuments",
|
||||
"description": "Fehlermeldung, wenn die Dokumentenbearbeitung fehlschlägt"
|
||||
},
|
||||
"message.dragOrClickToUpload": {
|
||||
"message": "Ziehen oder Klicken, um Dokumente hochzuladen",
|
||||
"description": "Nachricht zum Hochladen von Dokumenten"
|
||||
},
|
||||
"message.learningDocument": {
|
||||
"message": "Wird bearbeitet, bitte warten...",
|
||||
"description": "Nachricht während der Dokumentenbearbeitung"
|
||||
},
|
||||
"message.startNewChat": {
|
||||
"message": "Neuen Chat beginnen",
|
||||
"description": "Nachricht zum Start eines neuen Chats"
|
||||
},
|
||||
"message.errorApiError": {
|
||||
"message": "Antwort fehlgeschlagen, bitte später erneut versuchen",
|
||||
"description": "Fehlermeldung bei einer fehlgeschlagenen Antwort"
|
||||
},
|
||||
"message.errorBadRequest": {
|
||||
"message": "Die Anfrageformatierung ist nicht korrekt, bitte erneut fragen",
|
||||
"description": "Fehlermeldung bei falschem Anfrageformat"
|
||||
},
|
||||
"message.errorNoConversation": {
|
||||
"message": "Konversation existiert nicht oder ist abgelaufen, bitte neuen Chat beginnen",
|
||||
"description": "Fehlermeldung bei nicht existierender oder abgelaufener Konversation"
|
||||
},
|
||||
"message.errorContentTooLarge": {
|
||||
"message": "Die Anfrage ist zu lang, bitte kürzen und erneut versuchen",
|
||||
"description": "Fehlermeldung bei zu umfangreicher Anfrage"
|
||||
},
|
||||
"message.errorTooManyRequests": {
|
||||
"message": "Ihre Anfragen sind zu häufig, bitte später erneut versuchen",
|
||||
"description": "Fehlermeldung bei zu häufigen Anfragen"
|
||||
},
|
||||
"message.errorUsedUp": {
|
||||
"message": "Ihr Nutzungskontingent ist erschöpft, bitte kaufen Sie mehr Volumen, um fortzufahren",
|
||||
"description": "Fehlermeldung bei erschöpftem Nutzungskontingent"
|
||||
},
|
||||
"message.errorUnknown": {
|
||||
"message": "Ein unbekannter Serverfehler ist aufgetreten, bitte später erneut versuchen oder den Kundenservice kontaktieren",
|
||||
"description": "Fehlermeldung bei unbekanntem Serverfehler"
|
||||
},
|
||||
"message.errorTimeout": {
|
||||
"message": "Die Antwort auf die Anfrage hat zu lange gedauert, bitte später erneut versuchen",
|
||||
"description": "Fehlermeldung bei Timeout der Anfrage"
|
||||
},
|
||||
"message.errorNotApplied": {
|
||||
"message": "Sie haben diesen Dienst noch nicht beantragt, bitte beantragen Sie ihn, um fortzufahren",
|
||||
"description": "Fehlermeldung, wenn der Nutzer den Dienst nicht beantragt hat"
|
||||
},
|
||||
"message.confirmDelete": {
|
||||
"message": "Löschen bestätigen",
|
||||
"description": "Nachricht zur Bestätigung des Löschens"
|
||||
},
|
||||
"message.howToUse": {
|
||||
"message": "Drücken Sie Shift+Enter, um einen Zeilenumbruch zu machen",
|
||||
"description": "Nachricht zum Zeilenumbruch"
|
||||
},
|
||||
"message.createRepositorySuccess": {
|
||||
"message": "Wissensdatenbank erfolgreich erstellt",
|
||||
"description": "Erfolgsnachricht bei erfolgreicher Erstellung der Wissensdatenbank"
|
||||
},
|
||||
"message.createRepositoryFailed": {
|
||||
"message": "Fehler bei der Erstellung der Wissensdatenbank",
|
||||
"description": "Fehlermeldung bei fehlgeschlagener Erstellung der Wissensdatenbank"
|
||||
},
|
||||
"message.deleteRepositorySuccess": {
|
||||
"message": "Wissensdatenbank erfolgreich gelöscht",
|
||||
"description": "Erfolgsnachricht bei erfolgreicher Löschung der Wissensdatenbank"
|
||||
},
|
||||
"message.deleteDocumentSuccess": {
|
||||
"message": "Dokument erfolgreich gelöscht",
|
||||
"description": "Erfolgsnachricht bei erfolgreicher Löschung des Dokuments"
|
||||
},
|
||||
"message.currentRepository": {
|
||||
"message": "Aktuelle Wissensdatenbank",
|
||||
"description": "Information zur aktuellen Wissensdatenbank"
|
||||
},
|
||||
"message.nameRequired": {
|
||||
"message": "Der Name darf nicht leer sein",
|
||||
"description": "Fehlermeldung, wenn der Name leer ist"
|
||||
},
|
||||
"message.inputRepositoryName": {
|
||||
"message": "Wissensdatenbank Name",
|
||||
"description": "Platzhalter für die Eingabe des Wissensdatenbanknamens"
|
||||
},
|
||||
"message.inputRepositoryDescription": {
|
||||
"message": "Beschreiben Sie Ihr Wissensrepository in einem Satz",
|
||||
"description": "Platzhalter für die Beschreibung des Wissensrepositorys"
|
||||
},
|
||||
"message.supportedFiles": {
|
||||
"message": "Unterstützte Dateitypen: .docx, .doc, .pdf, .txt, .csv, .enex, .epub, .eml, .html, .htm, .shtml, .md, .odt, .ppt, .pptx",
|
||||
"description": "Anzeige der unterstützten Dateitypen"
|
||||
},
|
||||
"nav.chat": {
|
||||
"message": "Chat",
|
||||
"description": "Navigationspunkt für den Chat"
|
||||
},
|
||||
"nav.setting": {
|
||||
"message": "Einstellungen",
|
||||
"description": "Navigationspunkt für die Einstellungen"
|
||||
},
|
||||
"nav.manage": {
|
||||
"message": "Verwalten",
|
||||
"description": "Navigationspunkt für die Verwaltung"
|
||||
},
|
||||
"title.manage": {
|
||||
"message": "Wissensrepository verwalten",
|
||||
"description": "Titel zur Verwaltung des Wissensrepositorys"
|
||||
},
|
||||
"title.createRepository": {
|
||||
"message": "Wissensrepository erstellen",
|
||||
"description": "Titel zur Erstellung eines Wissensrepositorys"
|
||||
},
|
||||
"title.repositories": {
|
||||
"message": "Liste der Wissensrepositorys",
|
||||
"description": "Titel für die Liste der Wissensrepositorys"
|
||||
}
|
||||
}
|
||||
@@ -1,198 +0,0 @@
|
||||
{
|
||||
"button.uploadDocuments": {
|
||||
"message": "Ανέβασμα εγγράφων",
|
||||
"description": "Κείμενο κουμπιού, που επιτρέπει στον χρήστη να ανεβάσει έγγραφα"
|
||||
},
|
||||
"field.fileName": {
|
||||
"message": "Όνομα αρχείου",
|
||||
"description": "Το όνομα του αρχείου που θα ανέβει"
|
||||
},
|
||||
"field.createdAt": {
|
||||
"message": "Ημερομηνία δημιουργίας",
|
||||
"description": "Η ημερομηνία ανέβασε το έγγραφο"
|
||||
},
|
||||
"field.fileExtension": {
|
||||
"message": "Τύπος αρχείου",
|
||||
"description": "Ο τύπος του αρχείου που θα ανέβει"
|
||||
},
|
||||
"field.fileUrl": {
|
||||
"message": "Σύνδεσμος αρχείου",
|
||||
"description": "Ο σύνδεσμος για το ανέβασμα του αρχείου"
|
||||
},
|
||||
"field.fileSize": {
|
||||
"message": "Μέγεθος αρχείου",
|
||||
"description": "Το μέγεθος του αρχείου που θα ανέβει"
|
||||
},
|
||||
"field.state": {
|
||||
"message": "Κατάσταση",
|
||||
"description": "Η κατάσταση επεξεργασίας του εγγράφου"
|
||||
},
|
||||
"field.stateProcessing": {
|
||||
"message": "Σε επεξεργασία",
|
||||
"description": "Το έγγραφο είναι υπό επεξεργασία"
|
||||
},
|
||||
"field.stateCompleted": {
|
||||
"message": "Η επεξεργασία ολοκληρώθηκε",
|
||||
"description": "Η επεξεργασία του εγγράφου ήταν επιτυχής"
|
||||
},
|
||||
"field.stateFailed": {
|
||||
"message": "Αποτυχία επεξεργασίας",
|
||||
"description": "Η επεξεργασία του εγγράφου απέτυχε"
|
||||
},
|
||||
"field.name": {
|
||||
"message": "Όνομα",
|
||||
"description": "Το όνομα του εγγράφου"
|
||||
},
|
||||
"field.description": {
|
||||
"message": "Περιγραφή",
|
||||
"description": "Η περιγραφή του εγγράφου"
|
||||
},
|
||||
"message.introductionForKnowledge": {
|
||||
"message": "Τα έγγραφα μπορούν να προστεθούν στη βάση γνώσεων, και οι ρομπότ μπορούν να χρησιμοποιούν αυτές τις γνώσεις στις απαντήσεις τους.",
|
||||
"description": "Πληροφορίες εισαγωγής για τη βάση γνώσεων"
|
||||
},
|
||||
"message.introductionForRepository": {
|
||||
"message": "Η βάση γνώσεων είναι μια συλλογή εγγράφων, μπορείτε να προσθέσετε έγγραφα σε αυτήν. Οι ρομπότ θα απαντούν με βάση τα έγγραφα της βάσης γνώσεων.",
|
||||
"description": "Πληροφορίες εισαγωγής για τη βάση γνώσεων"
|
||||
},
|
||||
"message.uploadDocumentsExceed": {
|
||||
"message": "Ο αριθμός εγγράφων που ανέβηκαν ξεπέρασε το όριο",
|
||||
"description": "Μήνυμα σφάλματος όταν ξεπεραστεί το όριο των εγγράφων που αναβαθμίζονται"
|
||||
},
|
||||
"message.uploadDocumentsError": {
|
||||
"message": "Αποτυχία ανέβασμα εγγράφων",
|
||||
"description": "Μήνυμα σφάλματος όταν αποτύχει η διαδικασία ανέβασμα εγγράφων"
|
||||
},
|
||||
"message.uploadDocumentsSuccess": {
|
||||
"message": "Η ανάρτηση εγγράφων ήταν επιτυχής",
|
||||
"description": "Πληροφορίες επιτυχίας όταν η ανάρτηση εγγράφων είναι επιτυχής"
|
||||
},
|
||||
"message.createDocumentSuccess": {
|
||||
"message": "Η δημιουργία εγγράφου ήταν επιτυχής",
|
||||
"description": "Πληροφορίες επιτυχίας όταν η δημιουργία εγγράφου είναι επιτυχής"
|
||||
},
|
||||
"message.startCreateDocument": {
|
||||
"message": "Έναρξη δημιουργίας εγγράφου...",
|
||||
"description": "Πληροφορίες κατά την έναρξη δημιουργίας εγγράφου"
|
||||
},
|
||||
"message.createDocumentError": {
|
||||
"message": "Αποτυχία δημιουργίας εγγράφου",
|
||||
"description": "Μήνυμα σφάλματος όταν αποτύχει η διαδικασία δημιουργίας εγγράφου"
|
||||
},
|
||||
"message.dragOrClickToUpload": {
|
||||
"message": "Σύρετε ή κάντε κλικ για να ανεβάσετε έγγραφα",
|
||||
"description": "Πληροφορίες για τη διαδικασία ανέβασμα εγγράφων"
|
||||
},
|
||||
"message.learningDocument": {
|
||||
"message": "Σε διαδικασία εκμάθησης, παρακαλώ περιμένετε...",
|
||||
"description": "Πληροφορίες κατά τη διάρκεια εκμάθησης εγγράφου"
|
||||
},
|
||||
"message.startNewChat": {
|
||||
"message": "Έναρξη νέου διαλόγου",
|
||||
"description": "Πληροφορίες κατά την έναρξη νέου διαλόγου"
|
||||
},
|
||||
"message.errorApiError": {
|
||||
"message": "Αποτυχία απόκρισης, παρακαλώ δοκιμάστε ξανά αργότερα",
|
||||
"description": "Μήνυμα σφάλματος όταν αποτύχει η απόκριση"
|
||||
},
|
||||
"message.errorBadRequest": {
|
||||
"message": "Μη έγκυρη μορφή περιεχομένου αιτήματος, παρακαλώ ξαναρωτήστε",
|
||||
"description": "Μήνυμα σφάλματος για κακή αίτηση"
|
||||
},
|
||||
"message.errorNoConversation": {
|
||||
"message": "Το περιεχόμενο διαλόγου δεν υπάρχει ή έχει λήξει, παρακαλώ ξεκινήστε νέο διάλογο",
|
||||
"description": "Μήνυμα σφάλματος όταν το περιεχόμενο διαλόγου δεν υπάρχει"
|
||||
},
|
||||
"message.errorContentTooLarge": {
|
||||
"message": "Το περιεχόμενο της ερώτησης είναι πολύ μεγάλο, παρακαλώ συντομεύστε και δοκιμάστε ξανά",
|
||||
"description": "Μήνυμα σφάλματος όταν το περιεχόμενο της ερώτησης είναι πολύ μεγάλο"
|
||||
},
|
||||
"message.errorTooManyRequests": {
|
||||
"message": "Οι ενέργειές σας είναι πολύ συχνές, παρακαλώ δοκιμάστε ξανά αργότερα",
|
||||
"description": "Μήνυμα σφάλματος όταν οι ενέργειες είναι πολύ συχνές"
|
||||
},
|
||||
"message.errorUsedUp": {
|
||||
"message": "Η ποσότητα χρήσης σας έχει φτάσει στο ανώτατο όριο, παρακαλώ αγοράστε περισσότερη ποσότητα για να συνεχίσετε",
|
||||
"description": "Μήνυμα σφάλματος όταν η ποσότητα έχει καταναλωθεί"
|
||||
},
|
||||
"message.errorUnknown": {
|
||||
"message": "Σφάλμα άγνωστου server, παρακαλώ δοκιμάστε ξανά ή επικοινωνήστε με την υποστήριξη",
|
||||
"description": "Μήνυμα σφάλματος για άγνωστο σφάλμα"
|
||||
},
|
||||
"message.errorTimeout": {
|
||||
"message": "Η απάντηση στην ερώτηση ξεπέρασε το χρόνο, παρακαλώ δοκιμάστε ξανά αργότερα",
|
||||
"description": "Μήνυμα σφάλματος για υπέρβαση χρόνου"
|
||||
},
|
||||
"message.errorNotApplied": {
|
||||
"message": "Δεν έχετε ζητήσει αυτή την υπηρεσία, παρακαλώ ζητήστε την και συνεχίστε να ρωτάτε",
|
||||
"description": "Μήνυμα σφάλματος για χρήστη που δεν έχει ζητήσει υπηρεσία"
|
||||
},
|
||||
"message.confirmDelete": {
|
||||
"message": "Επιβεβαίωση διαγραφής",
|
||||
"description": "Πληροφορίες για επιβεβαίωση διαγραφής"
|
||||
},
|
||||
"message.howToUse": {
|
||||
"message": "Πιέστε Shift+Enter για να κάνετε νέα γραμμή",
|
||||
"description": "Πληροφορίες για το πώς να κάνετε νέα γραμμή"
|
||||
},
|
||||
"message.createRepositorySuccess": {
|
||||
"message": "Η δημιουργία βάσης γνώσεων ήταν επιτυχής",
|
||||
"description": "Πληροφορίες επιτυχίας για δημιουργία βάσης γνώσεων"
|
||||
},
|
||||
"message.createRepositoryFailed": {
|
||||
"message": "Αποτυχία δημιουργίας βάσης γνώσεων",
|
||||
"description": "Μήνυμα σφάλματος για αποτυχία δημιουργίας βάσης γνώσεων"
|
||||
},
|
||||
"message.deleteRepositorySuccess": {
|
||||
"message": "Η διαγραφή βάσης γνώσεων ήταν επιτυχής",
|
||||
"description": "Πληροφορίες επιτυχίας για διαγραφή βάσης γνώσεων"
|
||||
},
|
||||
"message.deleteDocumentSuccess": {
|
||||
"message": "Η διαγραφή εγγράφου ήταν επιτυχής",
|
||||
"description": "Πληροφορίες επιτυχίας για διαγραφή εγγράφου"
|
||||
},
|
||||
"message.currentRepository": {
|
||||
"message": "Τρέχουσα βάση γνώσεων",
|
||||
"description": "Πληροφορίες που εμφανίζουν την τρέχουσα βάση γνώσεων"
|
||||
},
|
||||
"message.nameRequired": {
|
||||
"message": "Το όνομα δεν μπορεί να είναι κενό",
|
||||
"description": "Μήνυμα σφάλματος όταν το όνομα είναι κενό"
|
||||
},
|
||||
"message.inputRepositoryName": {
|
||||
"message": "Όνομα βάσης γνώσεων",
|
||||
"description": "Δείτε την είσοδο για το όνομα της βάσης γνώσεων"
|
||||
},
|
||||
"message.inputRepositoryDescription": {
|
||||
"message": "Περιγράψτε τη βάσεις γνώσεων σας με μία πρόταση",
|
||||
"description": "Γραμμή εισόδου για την περιγραφή της βάσης γνώσεων"
|
||||
},
|
||||
"message.supportedFiles": {
|
||||
"message": "Υποστηριζόμενοι τύποι αρχείων: .docx, .doc, .pdf, .txt, .csv, .enex, .epub, .eml, .html, .htm, .shtml, .md, .odt, .ppt, .pptx",
|
||||
"description": "Πληροφορίες που δείχνουν τους υποστηριζόμενους τύπους αρχείων"
|
||||
},
|
||||
"nav.chat": {
|
||||
"message": "Συνομιλία",
|
||||
"description": "Επιλογία πλοήγησης για τη συνομιλία"
|
||||
},
|
||||
"nav.setting": {
|
||||
"message": "Ρυθμίσεις",
|
||||
"description": "Επιλογία πλοήγησης για τις ρυθμίσεις"
|
||||
},
|
||||
"nav.manage": {
|
||||
"message": "Διαχείριση",
|
||||
"description": "Επιλογία πλοήγησης για τη διαχείριση"
|
||||
},
|
||||
"title.manage": {
|
||||
"message": "Διαχείριση βάσης γνώσεων",
|
||||
"description": "Τίτλος για τη διαχείριση της βάσης γνώσεων"
|
||||
},
|
||||
"title.createRepository": {
|
||||
"message": "Δημιουργία βάσης γνώσεων",
|
||||
"description": "Τίτλος για τη δημιουργία βάσης γνώσεων"
|
||||
},
|
||||
"title.repositories": {
|
||||
"message": "Λίστα βάσεων γνώσεων",
|
||||
"description": "Τίτλος για τη λίστα των βάσεων γνώσεων"
|
||||
}
|
||||
}
|
||||
@@ -1,198 +0,0 @@
|
||||
{
|
||||
"button.uploadDocuments": {
|
||||
"message": "Upload Documents",
|
||||
"description": "Button text that allows users to upload documents"
|
||||
},
|
||||
"field.fileName": {
|
||||
"message": "File Name",
|
||||
"description": "The name of the uploaded document"
|
||||
},
|
||||
"field.createdAt": {
|
||||
"message": "Created At",
|
||||
"description": "The time when the document was uploaded"
|
||||
},
|
||||
"field.fileExtension": {
|
||||
"message": "File Type",
|
||||
"description": "The type of the uploaded document"
|
||||
},
|
||||
"field.fileUrl": {
|
||||
"message": "File Link",
|
||||
"description": "The link to the uploaded document"
|
||||
},
|
||||
"field.fileSize": {
|
||||
"message": "File Size",
|
||||
"description": "The size of the uploaded document"
|
||||
},
|
||||
"field.state": {
|
||||
"message": "Status",
|
||||
"description": "The processing status of the document"
|
||||
},
|
||||
"field.stateProcessing": {
|
||||
"message": "Processing",
|
||||
"description": "The document is currently being processed"
|
||||
},
|
||||
"field.stateCompleted": {
|
||||
"message": "Completed",
|
||||
"description": "The document has been processed successfully"
|
||||
},
|
||||
"field.stateFailed": {
|
||||
"message": "Failed",
|
||||
"description": "The document processing has failed"
|
||||
},
|
||||
"field.name": {
|
||||
"message": "Name",
|
||||
"description": "The name of the document"
|
||||
},
|
||||
"field.description": {
|
||||
"message": "Description",
|
||||
"description": "A description of the document"
|
||||
},
|
||||
"message.introductionForKnowledge": {
|
||||
"message": "Documents can be added to the knowledge base, allowing the bot to use knowledge from it when replying.",
|
||||
"description": "Introduction information for the knowledge base"
|
||||
},
|
||||
"message.introductionForRepository": {
|
||||
"message": "The knowledge base is a collection of documents, where you can add documents. The bot will respond using the documents in the knowledge base.",
|
||||
"description": "Introduction information for the knowledge base"
|
||||
},
|
||||
"message.uploadDocumentsExceed": {
|
||||
"message": "Upload document limit exceeded",
|
||||
"description": "Error message when the number of uploaded documents exceeds the limit"
|
||||
},
|
||||
"message.uploadDocumentsError": {
|
||||
"message": "Failed to upload documents",
|
||||
"description": "Error message when document upload fails"
|
||||
},
|
||||
"message.uploadDocumentsSuccess": {
|
||||
"message": "Documents uploaded successfully",
|
||||
"description": "Success message when documents are uploaded successfully"
|
||||
},
|
||||
"message.createDocumentSuccess": {
|
||||
"message": "Document created successfully",
|
||||
"description": "Success message when a document is created successfully"
|
||||
},
|
||||
"message.startCreateDocument": {
|
||||
"message": "Starting to process document...",
|
||||
"description": "Information when starting to process a document"
|
||||
},
|
||||
"message.createDocumentError": {
|
||||
"message": "Failed to process document",
|
||||
"description": "Error message when processing a document fails"
|
||||
},
|
||||
"message.dragOrClickToUpload": {
|
||||
"message": "Drag or click to upload documents",
|
||||
"description": "Information about dragging or clicking to upload documents"
|
||||
},
|
||||
"message.learningDocument": {
|
||||
"message": "Processing, please wait...",
|
||||
"description": "Information when processing a document"
|
||||
},
|
||||
"message.startNewChat": {
|
||||
"message": "Start a new conversation",
|
||||
"description": "Information when starting a new conversation"
|
||||
},
|
||||
"message.errorApiError": {
|
||||
"message": "Response failed, please try again later",
|
||||
"description": "Error message when the response fails"
|
||||
},
|
||||
"message.errorBadRequest": {
|
||||
"message": "Request format is incorrect, please ask again",
|
||||
"description": "Error message when the request format is incorrect"
|
||||
},
|
||||
"message.errorNoConversation": {
|
||||
"message": "Conversation not found or expired, please start a new conversation",
|
||||
"description": "Error message when the conversation does not exist or has expired"
|
||||
},
|
||||
"message.errorContentTooLarge": {
|
||||
"message": "Question content too long, please shorten and retry",
|
||||
"description": "Error message when the question content is too long"
|
||||
},
|
||||
"message.errorTooManyRequests": {
|
||||
"message": "Your actions are too frequent, please try again later",
|
||||
"description": "Error message when actions are too frequent"
|
||||
},
|
||||
"message.errorUsedUp": {
|
||||
"message": "You have reached the limit of your plan, please purchase more usage to continue",
|
||||
"description": "Error message when the usage limit of the plan is reached"
|
||||
},
|
||||
"message.errorUnknown": {
|
||||
"message": "An unknown server error occurred, please try again later or contact support",
|
||||
"description": "Error message when an unknown server error occurs"
|
||||
},
|
||||
"message.errorTimeout": {
|
||||
"message": "Question response timeout, please try again later",
|
||||
"description": "Error message when the question response times out"
|
||||
},
|
||||
"message.errorNotApplied": {
|
||||
"message": "You have not applied for this service, please apply before proceeding",
|
||||
"description": "Error message when the user has not applied for the service"
|
||||
},
|
||||
"message.confirmDelete": {
|
||||
"message": "Confirm deletion",
|
||||
"description": "Information to confirm deletion"
|
||||
},
|
||||
"message.howToUse": {
|
||||
"message": "Press Shift+Enter to create a new line",
|
||||
"description": "Information on how to create a new line"
|
||||
},
|
||||
"message.createRepositorySuccess": {
|
||||
"message": "Knowledge base created successfully",
|
||||
"description": "Success message when the knowledge base is created successfully"
|
||||
},
|
||||
"message.createRepositoryFailed": {
|
||||
"message": "Failed to create knowledge base",
|
||||
"description": "Error message when failed to create the knowledge base"
|
||||
},
|
||||
"message.deleteRepositorySuccess": {
|
||||
"message": "Knowledge base deleted successfully",
|
||||
"description": "Success message when the knowledge base is deleted successfully"
|
||||
},
|
||||
"message.deleteDocumentSuccess": {
|
||||
"message": "Document deleted successfully",
|
||||
"description": "Success message when the document is deleted successfully"
|
||||
},
|
||||
"message.currentRepository": {
|
||||
"message": "Current Knowledge Base",
|
||||
"description": "Information showing the current knowledge base"
|
||||
},
|
||||
"message.nameRequired": {
|
||||
"message": "Name cannot be empty",
|
||||
"description": "Error message when the name is empty"
|
||||
},
|
||||
"message.inputRepositoryName": {
|
||||
"message": "Knowledge Base Name",
|
||||
"description": "Placeholder for inputting the knowledge base name"
|
||||
},
|
||||
"message.inputRepositoryDescription": {
|
||||
"message": "Describe your knowledge base in one sentence",
|
||||
"description": "Input placeholder for knowledge base description"
|
||||
},
|
||||
"message.supportedFiles": {
|
||||
"message": "Supported file types: .docx, .doc, .pdf, .txt, .csv, .enex, .epub, .eml, .html, .htm, .shtml, .md, .odt, .ppt, .pptx",
|
||||
"description": "Information displaying the supported file types"
|
||||
},
|
||||
"nav.chat": {
|
||||
"message": "Chat",
|
||||
"description": "Navigation item for chat"
|
||||
},
|
||||
"nav.setting": {
|
||||
"message": "Settings",
|
||||
"description": "Navigation item for settings"
|
||||
},
|
||||
"nav.manage": {
|
||||
"message": "Manage",
|
||||
"description": "Navigation item for management"
|
||||
},
|
||||
"title.manage": {
|
||||
"message": "Manage Knowledge Base",
|
||||
"description": "Title for managing the knowledge base"
|
||||
},
|
||||
"title.createRepository": {
|
||||
"message": "Create Knowledge Base",
|
||||
"description": "Title for creating a knowledge base"
|
||||
},
|
||||
"title.repositories": {
|
||||
"message": "Knowledge Base List",
|
||||
"description": "Title for the knowledge base list"
|
||||
}
|
||||
}
|
||||
@@ -1,198 +0,0 @@
|
||||
{
|
||||
"button.uploadDocuments": {
|
||||
"message": "Cargar documentos",
|
||||
"description": "Texto del botón que permite al usuario cargar documentos"
|
||||
},
|
||||
"field.fileName": {
|
||||
"message": "Nombre del archivo",
|
||||
"description": "Nombre del archivo del documento cargado"
|
||||
},
|
||||
"field.createdAt": {
|
||||
"message": "Fecha de creación",
|
||||
"description": "Hora de carga del documento"
|
||||
},
|
||||
"field.fileExtension": {
|
||||
"message": "Tipo de archivo",
|
||||
"description": "Tipo de archivo del documento cargado"
|
||||
},
|
||||
"field.fileUrl": {
|
||||
"message": "Enlace del archivo",
|
||||
"description": "Enlace del documento cargado"
|
||||
},
|
||||
"field.fileSize": {
|
||||
"message": "Tamaño del archivo",
|
||||
"description": "Tamaño del documento cargado"
|
||||
},
|
||||
"field.state": {
|
||||
"message": "Estado",
|
||||
"description": "Estado del procesamiento del documento"
|
||||
},
|
||||
"field.stateProcessing": {
|
||||
"message": "En proceso",
|
||||
"description": "El documento está siendo procesado"
|
||||
},
|
||||
"field.stateCompleted": {
|
||||
"message": "Proceso completado",
|
||||
"description": "El procesamiento del documento fue exitoso"
|
||||
},
|
||||
"field.stateFailed": {
|
||||
"message": "Proceso fallido",
|
||||
"description": "El procesamiento del documento falló"
|
||||
},
|
||||
"field.name": {
|
||||
"message": "Nombre",
|
||||
"description": "Nombre del documento"
|
||||
},
|
||||
"field.description": {
|
||||
"message": "Descripción",
|
||||
"description": "Descripción del documento"
|
||||
},
|
||||
"message.introductionForKnowledge": {
|
||||
"message": "Los documentos se pueden añadir a la base de conocimientos, y el robot puede utilizar el conocimiento de la base al responder.",
|
||||
"description": "Información introductoria sobre la base de conocimientos"
|
||||
},
|
||||
"message.introductionForRepository": {
|
||||
"message": "La base de conocimientos es una colección de documentos a la que puede añadir documentos. El robot responderá a partir de los documentos en la base de conocimientos.",
|
||||
"description": "Información introductoria sobre la base de conocimientos"
|
||||
},
|
||||
"message.uploadDocumentsExceed": {
|
||||
"message": "Número de documentos cargados excede el límite",
|
||||
"description": "Mensaje de error cuando el número de documentos excede el límite"
|
||||
},
|
||||
"message.uploadDocumentsError": {
|
||||
"message": "Error al cargar documentos",
|
||||
"description": "Mensaje de error cuando falla la carga de documentos"
|
||||
},
|
||||
"message.uploadDocumentsSuccess": {
|
||||
"message": "Documentos cargados con éxito",
|
||||
"description": "Mensaje de éxito cuando los documentos se cargan correctamente"
|
||||
},
|
||||
"message.createDocumentSuccess": {
|
||||
"message": "Documento creado con éxito",
|
||||
"description": "Mensaje de éxito cuando se crea un documento"
|
||||
},
|
||||
"message.startCreateDocument": {
|
||||
"message": "Comenzando a procesar documento...",
|
||||
"description": "Información cuando se inicia el procesamiento de un documento"
|
||||
},
|
||||
"message.createDocumentError": {
|
||||
"message": "Error al procesar documento",
|
||||
"description": "Mensaje de error cuando falla el procesamiento de un documento"
|
||||
},
|
||||
"message.dragOrClickToUpload": {
|
||||
"message": "Arrastre o haga clic para cargar documentos",
|
||||
"description": "Información sobre cómo cargar documentos arrastrando o haciendo clic"
|
||||
},
|
||||
"message.learningDocument": {
|
||||
"message": "Procesando, por favor espere...",
|
||||
"description": "Información mientras se está procesando un documento"
|
||||
},
|
||||
"message.startNewChat": {
|
||||
"message": "Iniciar nueva conversación",
|
||||
"description": "Información cuando se empieza una nueva conversación"
|
||||
},
|
||||
"message.errorApiError": {
|
||||
"message": "Error de respuesta, por favor intente de nuevo más tarde",
|
||||
"description": "Mensaje de error cuando falla la respuesta"
|
||||
},
|
||||
"message.errorBadRequest": {
|
||||
"message": "Formato de contenido de la solicitud incorrecto, por favor reformule su pregunta",
|
||||
"description": "Mensaje de error cuando el formato de la solicitud es incorrecto"
|
||||
},
|
||||
"message.errorNoConversation": {
|
||||
"message": "El contenido de la conversación no existe o ha expirado, por favor inicie una nueva conversación",
|
||||
"description": "Mensaje de error cuando la conversación no existe o ha expirado"
|
||||
},
|
||||
"message.errorContentTooLarge": {
|
||||
"message": "El contenido de la pregunta es muy extenso, por favor reduzca y vuelva a intentar",
|
||||
"description": "Mensaje de error cuando el contenido de la pregunta es demasiado largo"
|
||||
},
|
||||
"message.errorTooManyRequests": {
|
||||
"message": "Sus acciones son demasiado frecuentes, por favor intente de nuevo más tarde",
|
||||
"description": "Mensaje de error cuando las acciones son demasiado frecuentes"
|
||||
},
|
||||
"message.errorUsedUp": {
|
||||
"message": "Ha alcanzado el límite de uso de su plan, por favor compre más para continuar",
|
||||
"description": "Mensaje de error cuando se ha alcanzado el límite de uso del plan"
|
||||
},
|
||||
"message.errorUnknown": {
|
||||
"message": "Se produjo un error desconocido del servidor, por favor intente de nuevo más tarde o contacte al servicio al cliente",
|
||||
"description": "Mensaje de error cuando ocurre un error desconocido del servidor"
|
||||
},
|
||||
"message.errorTimeout": {
|
||||
"message": "Tiempo de espera al responder la pregunta, por favor intente de nuevo más tarde",
|
||||
"description": "Mensaje de error cuando hay un tiempo de espera al responder"
|
||||
},
|
||||
"message.errorNotApplied": {
|
||||
"message": "No ha solicitado este servicio, por favor hágalo antes de continuar",
|
||||
"description": "Mensaje de error cuando el usuario no ha solicitado este servicio"
|
||||
},
|
||||
"message.confirmDelete": {
|
||||
"message": "Confirmar eliminación",
|
||||
"description": "Información para confirmar la eliminación"
|
||||
},
|
||||
"message.howToUse": {
|
||||
"message": "Presione Shift+Enter para salto de línea",
|
||||
"description": "Información sobre cómo hacer un salto de línea"
|
||||
},
|
||||
"message.createRepositorySuccess": {
|
||||
"message": "Base de conocimientos creada con éxito",
|
||||
"description": "Mensaje de éxito cuando se crea una base de conocimientos"
|
||||
},
|
||||
"message.createRepositoryFailed": {
|
||||
"message": "Error al crear la base de conocimientos",
|
||||
"description": "Mensaje de error cuando falla la creación de una base de conocimientos"
|
||||
},
|
||||
"message.deleteRepositorySuccess": {
|
||||
"message": "Base de conocimientos eliminada con éxito",
|
||||
"description": "Mensaje de éxito cuando se elimina una base de conocimientos"
|
||||
},
|
||||
"message.deleteDocumentSuccess": {
|
||||
"message": "Documento eliminado con éxito",
|
||||
"description": "Mensaje de éxito cuando se elimina un documento"
|
||||
},
|
||||
"message.currentRepository": {
|
||||
"message": "Base de conocimientos actual",
|
||||
"description": "Información que muestra la base de conocimientos actual"
|
||||
},
|
||||
"message.nameRequired": {
|
||||
"message": "El nombre no puede estar vacío",
|
||||
"description": "Mensaje de error cuando el nombre está vacío"
|
||||
},
|
||||
"message.inputRepositoryName": {
|
||||
"message": "Nombre de la base de conocimientos",
|
||||
"description": "Marcador de entrada para el nombre de la base de conocimientos"
|
||||
},
|
||||
"message.inputRepositoryDescription": {
|
||||
"message": "Describe tu repositorio en una frase",
|
||||
"description": "Placeholder de entrada para la descripción del repositorio"
|
||||
},
|
||||
"message.supportedFiles": {
|
||||
"message": "Tipos de archivos soportados: .docx, .doc, .pdf, .txt, .csv, .enex, .epub, .eml, .html, .htm, .shtml, .md, .odt, .ppt, .pptx",
|
||||
"description": "Información sobre los tipos de archivos soportados"
|
||||
},
|
||||
"nav.chat": {
|
||||
"message": "Chat",
|
||||
"description": "Elemento de navegación para el chat"
|
||||
},
|
||||
"nav.setting": {
|
||||
"message": "Configuración",
|
||||
"description": "Elemento de navegación para la configuración"
|
||||
},
|
||||
"nav.manage": {
|
||||
"message": "Administrar",
|
||||
"description": "Elemento de navegación para administrar"
|
||||
},
|
||||
"title.manage": {
|
||||
"message": "Administrar el repositorio",
|
||||
"description": "Título para administrar el repositorio"
|
||||
},
|
||||
"title.createRepository": {
|
||||
"message": "Crear repositorio",
|
||||
"description": "Título para crear un repositorio"
|
||||
},
|
||||
"title.repositories": {
|
||||
"message": "Lista de repositorios",
|
||||
"description": "Título para la lista de repositorios"
|
||||
}
|
||||
}
|
||||
@@ -1,198 +0,0 @@
|
||||
{
|
||||
"button.uploadDocuments": {
|
||||
"message": "Lataa asiakirjat",
|
||||
"description": "Painikkeen teksti, joka mahdollistaa käyttäjän lataavan asiakirjoja"
|
||||
},
|
||||
"field.fileName": {
|
||||
"message": "Tiedostonimi",
|
||||
"description": "Ladattavan asiakirjan tiedostonimi"
|
||||
},
|
||||
"field.createdAt": {
|
||||
"message": "Luontiaika",
|
||||
"description": "Asiakirjan lataushetki"
|
||||
},
|
||||
"field.fileExtension": {
|
||||
"message": "Tiedostotyyppi",
|
||||
"description": "Ladattavan asiakirjan tiedostotyyppi"
|
||||
},
|
||||
"field.fileUrl": {
|
||||
"message": "Tiedoston linkki",
|
||||
"description": "Ladattavan asiakirjan linkki"
|
||||
},
|
||||
"field.fileSize": {
|
||||
"message": "Tiedoston koko",
|
||||
"description": "Ladattavan asiakirjan koko"
|
||||
},
|
||||
"field.state": {
|
||||
"message": "Tila",
|
||||
"description": "Asiakirjan käsittelyn tila"
|
||||
},
|
||||
"field.stateProcessing": {
|
||||
"message": "Käsittelyssä",
|
||||
"description": "Asiakirja on käsittelyssä"
|
||||
},
|
||||
"field.stateCompleted": {
|
||||
"message": "Käsittely valmis",
|
||||
"description": "Asiakirjan käsittely onnistui"
|
||||
},
|
||||
"field.stateFailed": {
|
||||
"message": "Käsittely epäonnistui",
|
||||
"description": "Asiakirjan käsittely epäonnistui"
|
||||
},
|
||||
"field.name": {
|
||||
"message": "Nimi",
|
||||
"description": "Asiakirjan nimi"
|
||||
},
|
||||
"field.description": {
|
||||
"message": "Kuvaus",
|
||||
"description": "Asiakirjan kuvaus"
|
||||
},
|
||||
"message.introductionForKnowledge": {
|
||||
"message": "Asiakirjat voidaan lisätä tietopankkiin, ja robotti voi käyttää tietopankin tietoja vastatessaan.",
|
||||
"description": "Tietopankin esittelyinfo"
|
||||
},
|
||||
"message.introductionForRepository": {
|
||||
"message": "Tietopankki on asiakirjojen kokoelma, johon voit lisätä asiakirjoja. Robotti vastaa tietopankin asiakirjoista.",
|
||||
"description": "Tietopankin esittelyinfo"
|
||||
},
|
||||
"message.uploadDocumentsExceed": {
|
||||
"message": "Ladattavien asiakirjojen määrä ylittää rajan",
|
||||
"description": "Virheviesti, kun ladattavien asiakirjojen määrä ylittää rajan"
|
||||
},
|
||||
"message.uploadDocumentsError": {
|
||||
"message": "Asiakirjojen lataus epäonnistui",
|
||||
"description": "Virheviesti, kun asiakirjojen lataus epäonnistuu"
|
||||
},
|
||||
"message.uploadDocumentsSuccess": {
|
||||
"message": "Asiakirjojen lataus onnistui",
|
||||
"description": "Menestysviesti asiakirjojen lataamisen onnistumisesta"
|
||||
},
|
||||
"message.createDocumentSuccess": {
|
||||
"message": "Asiakirjan luominen onnistui",
|
||||
"description": "Menestysviesti asiakirjan luomisen onnistumisesta"
|
||||
},
|
||||
"message.startCreateDocument": {
|
||||
"message": "Asiakirjan käsittelyn aloittaminen...",
|
||||
"description": "Tietoa asiakirjan käsittelyn aloittamisesta"
|
||||
},
|
||||
"message.createDocumentError": {
|
||||
"message": "Asiakirjan käsittely epäonnistui",
|
||||
"description": "Virheviesti asiakirjan käsittelyn epäonnistumisesta"
|
||||
},
|
||||
"message.dragOrClickToUpload": {
|
||||
"message": "Vedä tai napsauta asiakirjan lataamiseksi",
|
||||
"description": "Tietoa asiakirjan lataamisesta vetämällä tai napsauttamalla"
|
||||
},
|
||||
"message.learningDocument": {
|
||||
"message": "Käsittelyssä, ole hyvä ja odota...",
|
||||
"description": "Tietoa asiakirjan käsittelystä"
|
||||
},
|
||||
"message.startNewChat": {
|
||||
"message": "Aloita uusi keskustelu",
|
||||
"description": "Tietoa uuden keskustelun aloittamisesta"
|
||||
},
|
||||
"message.errorApiError": {
|
||||
"message": "Vastaus epäonnistui, yritä uudelleen myöhemmin",
|
||||
"description": "Virheviesti, kun vastaus epäonnistuu"
|
||||
},
|
||||
"message.errorBadRequest": {
|
||||
"message": "Pyyntö sisältää virheitä, esitä kysymys uudelleen",
|
||||
"description": "Virheviesti virheellisestä sisällöstä pyynnössä"
|
||||
},
|
||||
"message.errorNoConversation": {
|
||||
"message": "Keskustelusisältöä ei ole tai se on vanhentunut, aloita uusi keskustelu",
|
||||
"description": "Virheviesti, kun keskustelusisältöä ei ole tai se on vanhentunut"
|
||||
},
|
||||
"message.errorContentTooLarge": {
|
||||
"message": "Kysymyksen sisältö on liian pitkä, lyhennä ja yritä uudelleen",
|
||||
"description": "Virheviesti, kun kysymyksen sisältö on liian pitkä"
|
||||
},
|
||||
"message.errorTooManyRequests": {
|
||||
"message": "Toimenpiteesi ovat liian tiheitä, yritä uudelleen myöhemmin",
|
||||
"description": "Virheviesti, kun toimintoja on liian usein"
|
||||
},
|
||||
"message.errorUsedUp": {
|
||||
"message": "Pakettisi käyttö on saavuttanut rajan, osta lisää käyttöä jatkaaksesi",
|
||||
"description": "Virheviesti, kun paketin käyttö on saavuttanut maksimin"
|
||||
},
|
||||
"message.errorUnknown": {
|
||||
"message": "Tuntematon palvelinvirhe, yritä uudelleen myöhemmin tai ota yhteyttä asiakaspalveluun",
|
||||
"description": "Virheviesti tuntemattomasta palvelinvirheestä"
|
||||
},
|
||||
"message.errorTimeout": {
|
||||
"message": "Vastausaika ylitetty, yritä uudelleen myöhemmin",
|
||||
"description": "Virheviesti, kun vastausaika ylitetään"
|
||||
},
|
||||
"message.errorNotApplied": {
|
||||
"message": "Et ole vielä hakenut tätä palvelua, hae ennen kuin kysyt lisää",
|
||||
"description": "Virheviesti, kun käyttäjä ei ole hakenut tätä palvelua"
|
||||
},
|
||||
"message.confirmDelete": {
|
||||
"message": "Vahvista poisto",
|
||||
"description": "Tietoa poiston vahvistamisesta"
|
||||
},
|
||||
"message.howToUse": {
|
||||
"message": "Paina Shift+Enter vaihtaaksesi riviä",
|
||||
"description": "Tietoa rivinvaihdosta"
|
||||
},
|
||||
"message.createRepositorySuccess": {
|
||||
"message": "Tietopankki luotiin onnistuneesti",
|
||||
"description": "Menestysviesti tietopankin luomisen onnistumisesta"
|
||||
},
|
||||
"message.createRepositoryFailed": {
|
||||
"message": "Tietopankin luominen epäonnistui",
|
||||
"description": "Virheviesti tietopankin luomisen epäonnistumisesta"
|
||||
},
|
||||
"message.deleteRepositorySuccess": {
|
||||
"message": "Tietopankki poistettiin onnistuneesti",
|
||||
"description": "Menestysviesti tietopankin poistamisen onnistumisesta"
|
||||
},
|
||||
"message.deleteDocumentSuccess": {
|
||||
"message": "Asiakirja poistettiin onnistuneesti",
|
||||
"description": "Menestysviesti asiakirjan poistamisen onnistumisesta"
|
||||
},
|
||||
"message.currentRepository": {
|
||||
"message": "Nykyinen tietopankki",
|
||||
"description": "Tietoa nykyisestä tietopankista"
|
||||
},
|
||||
"message.nameRequired": {
|
||||
"message": "Nimi ei voi olla tyhjää",
|
||||
"description": "Virheviesti, kun nimi on tyhjää"
|
||||
},
|
||||
"message.inputRepositoryName": {
|
||||
"message": "Tietopankin nimi",
|
||||
"description": "Tietopankin nimen syöttökentän paikka"
|
||||
},
|
||||
"message.inputRepositoryDescription": {
|
||||
"message": "Kuvaile tietokantaasi yhdellä lauseella",
|
||||
"description": "Tietokannan kuvauksen syöttöpaikka"
|
||||
},
|
||||
"message.supportedFiles": {
|
||||
"message": "Tuetut tiedostotyypit: .docx, .doc, .pdf, .txt, .csv, .enex, .epub, .eml, .html, .htm, .shtml, .md, .odt, .ppt, .pptx",
|
||||
"description": "Tietoa tuetuista tiedostotyypeistä"
|
||||
},
|
||||
"nav.chat": {
|
||||
"message": "Keskustelu",
|
||||
"description": "Keskustelun navigointi"
|
||||
},
|
||||
"nav.setting": {
|
||||
"message": "Asetukset",
|
||||
"description": "Asetusten navigointi"
|
||||
},
|
||||
"nav.manage": {
|
||||
"message": "Hallitse",
|
||||
"description": "Hallitsemisen navigointi"
|
||||
},
|
||||
"title.manage": {
|
||||
"message": "Hallinnoi tietokantaa",
|
||||
"description": "Tietokannan hallinnan otsikko"
|
||||
},
|
||||
"title.createRepository": {
|
||||
"message": "Luo tietokanta",
|
||||
"description": "Tietokannan luomisen otsikko"
|
||||
},
|
||||
"title.repositories": {
|
||||
"message": "Tietokantojen luettelo",
|
||||
"description": "Tietokantojen luettelon otsikko"
|
||||
}
|
||||
}
|
||||
@@ -1,198 +0,0 @@
|
||||
{
|
||||
"button.uploadDocuments": {
|
||||
"message": "Télécharger des documents",
|
||||
"description": "Bouton texte qui permet à l'utilisateur de télécharger des documents"
|
||||
},
|
||||
"field.fileName": {
|
||||
"message": "Nom de fichier",
|
||||
"description": "Nom du fichier à télécharger"
|
||||
},
|
||||
"field.createdAt": {
|
||||
"message": "Date de création",
|
||||
"description": "Date de téléchargement du document"
|
||||
},
|
||||
"field.fileExtension": {
|
||||
"message": "Type de fichier",
|
||||
"description": "Type de fichier du document téléchargé"
|
||||
},
|
||||
"field.fileUrl": {
|
||||
"message": "Lien du fichier",
|
||||
"description": "Lien du document téléchargé"
|
||||
},
|
||||
"field.fileSize": {
|
||||
"message": "Taille du fichier",
|
||||
"description": "Taille du document téléchargé"
|
||||
},
|
||||
"field.state": {
|
||||
"message": "État",
|
||||
"description": "État de traitement du document"
|
||||
},
|
||||
"field.stateProcessing": {
|
||||
"message": "En traitement",
|
||||
"description": "Document en cours de traitement"
|
||||
},
|
||||
"field.stateCompleted": {
|
||||
"message": "Traitement terminé",
|
||||
"description": "Traitement du document réussi"
|
||||
},
|
||||
"field.stateFailed": {
|
||||
"message": "Échec du traitement",
|
||||
"description": "Échec du traitement du document"
|
||||
},
|
||||
"field.name": {
|
||||
"message": "Nom",
|
||||
"description": "Nom du document"
|
||||
},
|
||||
"field.description": {
|
||||
"message": "Description",
|
||||
"description": "Description du document"
|
||||
},
|
||||
"message.introductionForKnowledge": {
|
||||
"message": "Les documents peuvent être ajoutés à la base de connaissances, que le robot peut utiliser lors des réponses.",
|
||||
"description": "Information d'introduction à la base de connaissances"
|
||||
},
|
||||
"message.introductionForRepository": {
|
||||
"message": "La base de connaissances est un ensemble de documents dans lequel vous pouvez ajouter des documents. Le robot répondra en utilisant les documents dans la base de connaissances.",
|
||||
"description": "Information d'introduction à la base de connaissances"
|
||||
},
|
||||
"message.uploadDocumentsExceed": {
|
||||
"message": "Nombre de documents téléchargés au-dessus de la limite",
|
||||
"description": "Message d'erreur lorsque le nombre de documents téléchargés dépasse la limite"
|
||||
},
|
||||
"message.uploadDocumentsError": {
|
||||
"message": "Échec de l'upload des documents",
|
||||
"description": "Message d'erreur lors de l'échec du téléchargement des documents"
|
||||
},
|
||||
"message.uploadDocumentsSuccess": {
|
||||
"message": "Documents téléchargés avec succès",
|
||||
"description": "Message de succès lors du téléchargement réussi des documents"
|
||||
},
|
||||
"message.createDocumentSuccess": {
|
||||
"message": "Document créé avec succès",
|
||||
"description": "Message de succès lors de la création réussie d'un document"
|
||||
},
|
||||
"message.startCreateDocument": {
|
||||
"message": "Début du traitement du document...",
|
||||
"description": "Message lors du début du traitement d'un document"
|
||||
},
|
||||
"message.createDocumentError": {
|
||||
"message": "Échec du traitement du document",
|
||||
"description": "Message d'erreur lors de l'échec du traitement d'un document"
|
||||
},
|
||||
"message.dragOrClickToUpload": {
|
||||
"message": "Glisser ou cliquer pour télécharger des documents",
|
||||
"description": "Information sur le téléchargement de documents par glisser ou cliquer"
|
||||
},
|
||||
"message.learningDocument": {
|
||||
"message": "En cours de traitement, veuillez patienter...",
|
||||
"description": "Message lors du traitement d'un document"
|
||||
},
|
||||
"message.startNewChat": {
|
||||
"message": "Démarrer une nouvelle conversation",
|
||||
"description": "Information lors du démarrage d'une nouvelle conversation"
|
||||
},
|
||||
"message.errorApiError": {
|
||||
"message": "Échec de la réponse, veuillez réessayer plus tard",
|
||||
"description": "Message d'erreur lors d'un échec de réponse"
|
||||
},
|
||||
"message.errorBadRequest": {
|
||||
"message": "Format du contenu de la requête incorrect, veuillez reformuler votre question",
|
||||
"description": "Message d'erreur lorsque le format du contenu de la requête est incorrect"
|
||||
},
|
||||
"message.errorNoConversation": {
|
||||
"message": "Le contenu de la conversation n'existe pas ou a expiré, veuillez commencer une nouvelle conversation",
|
||||
"description": "Message d'erreur lorsque le contenu de la conversation n'existe pas ou a expiré"
|
||||
},
|
||||
"message.errorContentTooLarge": {
|
||||
"message": "Le contenu de la question est trop long, veuillez le réduire et réessayer",
|
||||
"description": "Message d'erreur lorsque le contenu de la question est trop long"
|
||||
},
|
||||
"message.errorTooManyRequests": {
|
||||
"message": "Votre opération est trop fréquente, veuillez réessayer plus tard",
|
||||
"description": "Message d'erreur lors d'opérations trop fréquentes"
|
||||
},
|
||||
"message.errorUsedUp": {
|
||||
"message": "Votre quota d'utilisation est atteint, veuillez acheter plus de quota pour continuer",
|
||||
"description": "Message d'erreur lorsque le quota d'utilisation est atteint"
|
||||
},
|
||||
"message.errorUnknown": {
|
||||
"message": "Erreur serveur inconnue, veuillez réessayer plus tard ou contacter le support client",
|
||||
"description": "Message d'erreur lors d'une erreur serveur inconnue"
|
||||
},
|
||||
"message.errorTimeout": {
|
||||
"message": "Délai d'attente dépassé pour répondre à la question, veuillez réessayer plus tard",
|
||||
"description": "Message d'erreur lors d'un délai d'attente dépassé"
|
||||
},
|
||||
"message.errorNotApplied": {
|
||||
"message": "Vous n'avez pas encore demandé ce service, veuillez demander avant de continuer",
|
||||
"description": "Message d'erreur lorsque l'utilisateur n'a pas encore demandé ce service"
|
||||
},
|
||||
"message.confirmDelete": {
|
||||
"message": "Confirmer la suppression",
|
||||
"description": "Information pour confirmer la suppression"
|
||||
},
|
||||
"message.howToUse": {
|
||||
"message": "Appuyez sur Shift+Entrée pour un retour à la ligne",
|
||||
"description": "Information sur comment faire un retour à la ligne"
|
||||
},
|
||||
"message.createRepositorySuccess": {
|
||||
"message": "Base de connaissances créée avec succès",
|
||||
"description": "Message de succès lors de la création réussie d'une base de connaissances"
|
||||
},
|
||||
"message.createRepositoryFailed": {
|
||||
"message": "Échec de la création de la base de connaissances",
|
||||
"description": "Message d'erreur lors de l'échec de la création d'une base de connaissances"
|
||||
},
|
||||
"message.deleteRepositorySuccess": {
|
||||
"message": "Base de connaissances supprimée avec succès",
|
||||
"description": "Message de succès lors de la suppression réussie d'une base de connaissances"
|
||||
},
|
||||
"message.deleteDocumentSuccess": {
|
||||
"message": "Document supprimé avec succès",
|
||||
"description": "Message de succès lors de la suppression réussie d'un document"
|
||||
},
|
||||
"message.currentRepository": {
|
||||
"message": "Base de connaissances actuelle",
|
||||
"description": "Information affichant la base de connaissances actuelle"
|
||||
},
|
||||
"message.nameRequired": {
|
||||
"message": "Le nom ne peut pas être vide",
|
||||
"description": "Message d'erreur lorsque le nom est vide"
|
||||
},
|
||||
"message.inputRepositoryName": {
|
||||
"message": "Nom de la base de connaissances",
|
||||
"description": "Placeholder pour l'entrée du nom de la base de connaissances"
|
||||
},
|
||||
"message.inputRepositoryDescription": {
|
||||
"message": "Décrivez votre base de connaissances en une phrase",
|
||||
"description": "Espace réservé pour la description de la base de connaissances"
|
||||
},
|
||||
"message.supportedFiles": {
|
||||
"message": "Types de fichiers pris en charge : .docx, .doc, .pdf, .txt, .csv, .enex, .epub, .eml, .html, .htm, .shtml, .md, .odt, .ppt, .pptx",
|
||||
"description": "Information affichant les types de fichiers pris en charge"
|
||||
},
|
||||
"nav.chat": {
|
||||
"message": "Chat",
|
||||
"description": "Élément de navigation pour le chat"
|
||||
},
|
||||
"nav.setting": {
|
||||
"message": "Paramètres",
|
||||
"description": "Élément de navigation pour les paramètres"
|
||||
},
|
||||
"nav.manage": {
|
||||
"message": "Gérer",
|
||||
"description": "Élément de navigation pour la gestion"
|
||||
},
|
||||
"title.manage": {
|
||||
"message": "Gérer la base de connaissances",
|
||||
"description": "Titre pour la gestion de la base de connaissances"
|
||||
},
|
||||
"title.createRepository": {
|
||||
"message": "Créer une base de connaissances",
|
||||
"description": "Titre pour la création d'une base de connaissances"
|
||||
},
|
||||
"title.repositories": {
|
||||
"message": "Liste des bases de connaissances",
|
||||
"description": "Titre pour la liste des bases de connaissances"
|
||||
}
|
||||
}
|
||||
+1
-2
@@ -90,8 +90,7 @@ export const loadLocaleMessages = async (i18n: I18n, locale: string) => {
|
||||
'user',
|
||||
'site',
|
||||
'chat',
|
||||
'midjourney',
|
||||
'chatdoc'
|
||||
'midjourney'
|
||||
];
|
||||
|
||||
const promises = names.map((name) => loadLocalResource(name, locale));
|
||||
|
||||
@@ -1,198 +0,0 @@
|
||||
{
|
||||
"button.uploadDocuments": {
|
||||
"message": "Carica documenti",
|
||||
"description": "Testo del pulsante che consente all'utente di caricare documenti"
|
||||
},
|
||||
"field.fileName": {
|
||||
"message": "Nome file",
|
||||
"description": "Nome del file dei documenti caricati"
|
||||
},
|
||||
"field.createdAt": {
|
||||
"message": "Data di creazione",
|
||||
"description": "Data e ora di caricamento del documento"
|
||||
},
|
||||
"field.fileExtension": {
|
||||
"message": "Tipo di file",
|
||||
"description": "Tipo di file dei documenti caricati"
|
||||
},
|
||||
"field.fileUrl": {
|
||||
"message": "Collegamento al file",
|
||||
"description": "Collegamento al documento caricato"
|
||||
},
|
||||
"field.fileSize": {
|
||||
"message": "Dimensione del file",
|
||||
"description": "Dimensione del documento caricato"
|
||||
},
|
||||
"field.state": {
|
||||
"message": "Stato",
|
||||
"description": "Stato di elaborazione del documento"
|
||||
},
|
||||
"field.stateProcessing": {
|
||||
"message": "In elaborazione",
|
||||
"description": "Documento attualmente in elaborazione"
|
||||
},
|
||||
"field.stateCompleted": {
|
||||
"message": "Elaborazione completata",
|
||||
"description": "Elaborazione del documento riuscita"
|
||||
},
|
||||
"field.stateFailed": {
|
||||
"message": "Elaborazione fallita",
|
||||
"description": "Elaborazione del documento non riuscita"
|
||||
},
|
||||
"field.name": {
|
||||
"message": "Nome",
|
||||
"description": "Nome del documento"
|
||||
},
|
||||
"field.description": {
|
||||
"message": "Descrizione",
|
||||
"description": "Descrizione del documento"
|
||||
},
|
||||
"message.introductionForKnowledge": {
|
||||
"message": "I documenti possono essere aggiunti alla conoscenza, il robot può utilizzare le informazioni presenti in essa per rispondere.",
|
||||
"description": "Informazioni introduttive sulla conoscenza"
|
||||
},
|
||||
"message.introductionForRepository": {
|
||||
"message": "La conoscenza è una raccolta di documenti, puoi aggiungere documenti a essa. Il robot risponderà attingendo dai documenti presenti nella conoscenza.",
|
||||
"description": "Informazioni introduttive sulla conoscenza"
|
||||
},
|
||||
"message.uploadDocumentsExceed": {
|
||||
"message": "Numero di documenti caricati superiore al limite",
|
||||
"description": "Informazioni di errore quando il numero di documenti caricati supera il limite"
|
||||
},
|
||||
"message.uploadDocumentsError": {
|
||||
"message": "Caricamento documenti non riuscito",
|
||||
"description": "Informazioni di errore quando il caricamento dei documenti fallisce"
|
||||
},
|
||||
"message.uploadDocumentsSuccess": {
|
||||
"message": "Documenti caricati con successo",
|
||||
"description": "Informazioni di successo quando il caricamento dei documenti riesce"
|
||||
},
|
||||
"message.createDocumentSuccess": {
|
||||
"message": "Documento creato con successo",
|
||||
"description": "Informazioni di successo quando il documento viene creato con successo"
|
||||
},
|
||||
"message.startCreateDocument": {
|
||||
"message": "Inizio dell'elaborazione del documento...",
|
||||
"description": "Informazioni all'inizio dell'elaborazione del documento"
|
||||
},
|
||||
"message.createDocumentError": {
|
||||
"message": "Creazione documento non riuscita",
|
||||
"description": "Informazioni di errore quando la creazione del documento fallisce"
|
||||
},
|
||||
"message.dragOrClickToUpload": {
|
||||
"message": "Trascina o fai clic per caricare documenti",
|
||||
"description": "Informazioni su come caricare documenti"
|
||||
},
|
||||
"message.learningDocument": {
|
||||
"message": "In elaborazione, attendere...",
|
||||
"description": "Informazioni durante l'elaborazione del documento"
|
||||
},
|
||||
"message.startNewChat": {
|
||||
"message": "Inizia una nuova conversazione",
|
||||
"description": "Informazioni per iniziare una nuova conversazione"
|
||||
},
|
||||
"message.errorApiError": {
|
||||
"message": "Risposta non riuscita, riprova più tardi",
|
||||
"description": "Informazioni di errore quando la risposta fallisce"
|
||||
},
|
||||
"message.errorBadRequest": {
|
||||
"message": "Formato del contenuto della richiesta non valido, riprova",
|
||||
"description": "Informazioni di errore quando il formato della richiesta è errato"
|
||||
},
|
||||
"message.errorNoConversation": {
|
||||
"message": "Conversazione non esistente o scaduta, inizia una nuova conversazione",
|
||||
"description": "Informazioni di errore quando la conversazione non esiste o è scaduta"
|
||||
},
|
||||
"message.errorContentTooLarge": {
|
||||
"message": "Il contenuto della domanda è troppo lungo, accorcia e riprova",
|
||||
"description": "Informazioni di errore quando il contenuto della domanda è troppo lungo"
|
||||
},
|
||||
"message.errorTooManyRequests": {
|
||||
"message": "Le tue richieste sono troppo frequenti, riprova più tardi",
|
||||
"description": "Informazioni di errore quando ci sono troppe richieste"
|
||||
},
|
||||
"message.errorUsedUp": {
|
||||
"message": "Hai raggiunto il limite di utilizzo del tuo piano, acquista più disponibilità per continuare",
|
||||
"description": "Informazioni di errore quando si raggiunge il limite di utilizzo del piano"
|
||||
},
|
||||
"message.errorUnknown": {
|
||||
"message": "Si è verificato un errore sconosciuto del server, riprova più tardi o contatta il supporto",
|
||||
"description": "Informazioni di errore quando si verifica un errore sconosciuto"
|
||||
},
|
||||
"message.errorTimeout": {
|
||||
"message": "Tempo scaduto per ricevere una risposta, riprova più tardi",
|
||||
"description": "Informazioni di errore quando il tempo di attesa scade"
|
||||
},
|
||||
"message.errorNotApplied": {
|
||||
"message": "Non hai ancora richiesto questo servizio, richiedi prima di continuare a fare domande",
|
||||
"description": "Informazioni di errore quando l'utente non ha richiesto il servizio"
|
||||
},
|
||||
"message.confirmDelete": {
|
||||
"message": "Conferma eliminazione",
|
||||
"description": "Informazioni per confermare l'eliminazione"
|
||||
},
|
||||
"message.howToUse": {
|
||||
"message": "Premi Shift+Enter per andare a capo",
|
||||
"description": "Informazioni su come andare a capo"
|
||||
},
|
||||
"message.createRepositorySuccess": {
|
||||
"message": "Conoscenza creata con successo",
|
||||
"description": "Informazioni di successo quando la conoscenza viene creata con successo"
|
||||
},
|
||||
"message.createRepositoryFailed": {
|
||||
"message": "Creazione della conoscenza non riuscita",
|
||||
"description": "Informazioni di errore quando la creazione della conoscenza fallisce"
|
||||
},
|
||||
"message.deleteRepositorySuccess": {
|
||||
"message": "Conoscenza eliminata con successo",
|
||||
"description": "Informazioni di successo quando la conoscenza viene eliminata con successo"
|
||||
},
|
||||
"message.deleteDocumentSuccess": {
|
||||
"message": "Documento eliminato con successo",
|
||||
"description": "Informazioni di successo quando il documento viene eliminato con successo"
|
||||
},
|
||||
"message.currentRepository": {
|
||||
"message": "Conoscenza attuale",
|
||||
"description": "Informazioni per mostrare la conoscenza attuale"
|
||||
},
|
||||
"message.nameRequired": {
|
||||
"message": "Il nome non può essere vuoto",
|
||||
"description": "Informazioni di errore quando il nome è vuoto"
|
||||
},
|
||||
"message.inputRepositoryName": {
|
||||
"message": "Nome della conoscenza",
|
||||
"description": "Segnaposto per l'input del nome della conoscenza"
|
||||
},
|
||||
"message.inputRepositoryDescription": {
|
||||
"message": "Descrivi il tuo repository in una frase",
|
||||
"description": "Placeholder per la descrizione del repository"
|
||||
},
|
||||
"message.supportedFiles": {
|
||||
"message": "Tipi di file supportati: .docx, .doc, .pdf, .txt, .csv, .enex, .epub, .eml, .html, .htm, .shtml, .md, .odt, .ppt, .pptx",
|
||||
"description": "Informazioni sui tipi di file supportati"
|
||||
},
|
||||
"nav.chat": {
|
||||
"message": "Chat",
|
||||
"description": "Voce di navigazione per la chat"
|
||||
},
|
||||
"nav.setting": {
|
||||
"message": "Impostazioni",
|
||||
"description": "Voce di navigazione per le impostazioni"
|
||||
},
|
||||
"nav.manage": {
|
||||
"message": "Gestisci",
|
||||
"description": "Voce di navigazione per la gestione"
|
||||
},
|
||||
"title.manage": {
|
||||
"message": "Gestisci il repository",
|
||||
"description": "Titolo per la gestione del repository"
|
||||
},
|
||||
"title.createRepository": {
|
||||
"message": "Crea un repository",
|
||||
"description": "Titolo per la creazione del repository"
|
||||
},
|
||||
"title.repositories": {
|
||||
"message": "Elenco dei repository",
|
||||
"description": "Titolo per l'elenco dei repository"
|
||||
}
|
||||
}
|
||||
@@ -1,198 +0,0 @@
|
||||
{
|
||||
"button.uploadDocuments": {
|
||||
"message": "ドキュメントをアップロード",
|
||||
"description": "ユーザーがドキュメントをアップロードを許可するボタンのテキスト"
|
||||
},
|
||||
"field.fileName": {
|
||||
"message": "ファイル名",
|
||||
"description": "アップロードするドキュメントのファイル名"
|
||||
},
|
||||
"field.createdAt": {
|
||||
"message": "作成日時",
|
||||
"description": "ドキュメントのアップロード日時"
|
||||
},
|
||||
"field.fileExtension": {
|
||||
"message": "ファイルタイプ",
|
||||
"description": "アップロードするドキュメントのファイルタイプ"
|
||||
},
|
||||
"field.fileUrl": {
|
||||
"message": "ファイルリンク",
|
||||
"description": "アップロードしたドキュメントのリンク"
|
||||
},
|
||||
"field.fileSize": {
|
||||
"message": "ファイルサイズ",
|
||||
"description": "アップロードしたドキュメントのサイズ"
|
||||
},
|
||||
"field.state": {
|
||||
"message": "ステータス",
|
||||
"description": "ドキュメント処理のステータス"
|
||||
},
|
||||
"field.stateProcessing": {
|
||||
"message": "処理中",
|
||||
"description": "ドキュメントが処理中であること"
|
||||
},
|
||||
"field.stateCompleted": {
|
||||
"message": "処理完了",
|
||||
"description": "ドキュメント処理が成功したこと"
|
||||
},
|
||||
"field.stateFailed": {
|
||||
"message": "処理失敗",
|
||||
"description": "ドキュメント処理に失敗したこと"
|
||||
},
|
||||
"field.name": {
|
||||
"message": "名称",
|
||||
"description": "ドキュメントの名称"
|
||||
},
|
||||
"field.description": {
|
||||
"message": "説明",
|
||||
"description": "ドキュメントの説明"
|
||||
},
|
||||
"message.introductionForKnowledge": {
|
||||
"message": "ドキュメントは知識ベースに追加され、ボットの応答で知識ベースの知識が使用されます。",
|
||||
"description": "知識ベースの紹介情報"
|
||||
},
|
||||
"message.introductionForRepository": {
|
||||
"message": "知識ベースはドキュメントの集合で、そこにドキュメントを追加できます。 ボットの回答は知識ベースのドキュメントから行われます。",
|
||||
"description": "知識ベースの紹介情報"
|
||||
},
|
||||
"message.uploadDocumentsExceed": {
|
||||
"message": "アップロードするドキュメントの数が制限を超えました",
|
||||
"description": "アップロードするドキュメントの数が制限を超えたときのエラーメッセージ"
|
||||
},
|
||||
"message.uploadDocumentsError": {
|
||||
"message": "ドキュメントのアップロードに失敗しました",
|
||||
"description": "ドキュメントのアップロードに失敗したときのエラーメッセージ"
|
||||
},
|
||||
"message.uploadDocumentsSuccess": {
|
||||
"message": "ドキュメントがアップロードされました",
|
||||
"description": "ドキュメントのアップロードが成功したときの成功メッセージ"
|
||||
},
|
||||
"message.createDocumentSuccess": {
|
||||
"message": "ドキュメントの作成が成功しました",
|
||||
"description": "ドキュメントの作成が成功したときの成功メッセージ"
|
||||
},
|
||||
"message.startCreateDocument": {
|
||||
"message": "ドキュメントの処理を開始しています...",
|
||||
"description": "ドキュメントの処理を開始するときのメッセージ"
|
||||
},
|
||||
"message.createDocumentError": {
|
||||
"message": "ドキュメントの処理に失敗しました",
|
||||
"description": "ドキュメントの処理に失敗したときのエラーメッセージ"
|
||||
},
|
||||
"message.dragOrClickToUpload": {
|
||||
"message": "ドラッグまたはクリックしてドキュメントをアップロード",
|
||||
"description": "ドラッグまたはクリックしてドキュメントをアップロードするためのメッセージ"
|
||||
},
|
||||
"message.learningDocument": {
|
||||
"message": "処理中です。しばらくお待ちください...",
|
||||
"description": "ドキュメントを処理しているときのメッセージ"
|
||||
},
|
||||
"message.startNewChat": {
|
||||
"message": "新しい対話を開始",
|
||||
"description": "新しい対話を開始するときのメッセージ"
|
||||
},
|
||||
"message.errorApiError": {
|
||||
"message": "応答に失敗しました。後で再試行してください",
|
||||
"description": "応答に失敗したときのエラーメッセージ"
|
||||
},
|
||||
"message.errorBadRequest": {
|
||||
"message": "リクエストの内容形式が正しくありません。再度質問してください",
|
||||
"description": "リクエストの内容形式が正しくないときのエラーメッセージ"
|
||||
},
|
||||
"message.errorNoConversation": {
|
||||
"message": "対話内容が存在しないか、期限切れです。新しい対話を開始してください",
|
||||
"description": "対話内容が存在しないか、期限切れのときのエラーメッセージ"
|
||||
},
|
||||
"message.errorContentTooLarge": {
|
||||
"message": "質問内容が長すぎます。短くして再試行してください",
|
||||
"description": "質問内容が長すぎるときのエラーメッセージ"
|
||||
},
|
||||
"message.errorTooManyRequests": {
|
||||
"message": "操作が頻繁すぎます。後で再試行してください",
|
||||
"description": "操作が頻繁すぎるときのエラーメッセージ"
|
||||
},
|
||||
"message.errorUsedUp": {
|
||||
"message": "パッケージの使用量が上限に達しました。続行するには使用量を追加購入してください",
|
||||
"description": "パッケージの使用量が上限に達したときのエラーメッセージ"
|
||||
},
|
||||
"message.errorUnknown": {
|
||||
"message": "未知のサーバーエラーが発生しました。後で再試行するか、カスタマーサポートに連絡してください",
|
||||
"description": "未知のサーバーエラーが発生したときのエラーメッセージ"
|
||||
},
|
||||
"message.errorTimeout": {
|
||||
"message": "質問への回答がタイムアウトしました。後で再試行してください",
|
||||
"description": "質問への回答がタイムアウトしたときのエラーメッセージ"
|
||||
},
|
||||
"message.errorNotApplied": {
|
||||
"message": "このサービスを申請していません。申請してから質問を続けてください",
|
||||
"description": "ユーザーがこのサービスを申請していないときのエラーメッセージ"
|
||||
},
|
||||
"message.confirmDelete": {
|
||||
"message": "削除を確認",
|
||||
"description": "削除を確認するメッセージ"
|
||||
},
|
||||
"message.howToUse": {
|
||||
"message": "Shift+Enter で改行します",
|
||||
"description": "改行の方法に関するメッセージ"
|
||||
},
|
||||
"message.createRepositorySuccess": {
|
||||
"message": "知識ベースが成功裏に作成されました",
|
||||
"description": "知識ベースが成功裏に作成されたときの成功メッセージ"
|
||||
},
|
||||
"message.createRepositoryFailed": {
|
||||
"message": "知識ベースの作成に失敗しました",
|
||||
"description": "知識ベースの作成に失敗したときのエラーメッセージ"
|
||||
},
|
||||
"message.deleteRepositorySuccess": {
|
||||
"message": "知識ベースが成功裏に削除されました",
|
||||
"description": "知識ベースが成功裏に削除されたときの成功メッセージ"
|
||||
},
|
||||
"message.deleteDocumentSuccess": {
|
||||
"message": "ドキュメントが成功裏に削除されました",
|
||||
"description": "ドキュメントが成功裏に削除されたときの成功メッセージ"
|
||||
},
|
||||
"message.currentRepository": {
|
||||
"message": "現在の知識ベース",
|
||||
"description": "現在の知識ベースを表示するメッセージ"
|
||||
},
|
||||
"message.nameRequired": {
|
||||
"message": "名称は空にできません",
|
||||
"description": "名称が空のときのエラーメッセージ"
|
||||
},
|
||||
"message.inputRepositoryName": {
|
||||
"message": "知識ベースの名称",
|
||||
"description": "知識ベースの名称の入力プレースホルダー"
|
||||
},
|
||||
"message.inputRepositoryDescription": {
|
||||
"message": "あなたの知識ベースを一言で説明してください",
|
||||
"description": "知識ベースの説明の入力プレースホルダー"
|
||||
},
|
||||
"message.supportedFiles": {
|
||||
"message": "サポートされているファイルタイプ:.docx, .doc, .pdf, .txt, .csv, .enex, .epub, .eml, .html, .htm, .shtml, .md, .odt, .ppt, .pptx",
|
||||
"description": "サポートされているファイルタイプに関する情報を表示"
|
||||
},
|
||||
"nav.chat": {
|
||||
"message": "チャット",
|
||||
"description": "チャットのナビゲーション項目"
|
||||
},
|
||||
"nav.setting": {
|
||||
"message": "設定",
|
||||
"description": "設定のナビゲーション項目"
|
||||
},
|
||||
"nav.manage": {
|
||||
"message": "管理",
|
||||
"description": "管理のナビゲーション項目"
|
||||
},
|
||||
"title.manage": {
|
||||
"message": "知識ベースの管理",
|
||||
"description": "知識ベースを管理するためのタイトル"
|
||||
},
|
||||
"title.createRepository": {
|
||||
"message": "知識ベースの作成",
|
||||
"description": "知識ベースを作成するためのタイトル"
|
||||
},
|
||||
"title.repositories": {
|
||||
"message": "知識ベースリスト",
|
||||
"description": "知識ベースのリストのタイトル"
|
||||
}
|
||||
}
|
||||
@@ -1,198 +0,0 @@
|
||||
{
|
||||
"button.uploadDocuments": {
|
||||
"message": "문서 업로드",
|
||||
"description": "사용자가 문서를 업로드할 수 있는 버튼 텍스트"
|
||||
},
|
||||
"field.fileName": {
|
||||
"message": "파일 이름",
|
||||
"description": "업로드할 문서의 파일 이름"
|
||||
},
|
||||
"field.createdAt": {
|
||||
"message": "생성 시간",
|
||||
"description": "문서 업로드 시간"
|
||||
},
|
||||
"field.fileExtension": {
|
||||
"message": "파일 형식",
|
||||
"description": "업로드할 문서의 파일 형식"
|
||||
},
|
||||
"field.fileUrl": {
|
||||
"message": "파일 링크",
|
||||
"description": "업로드된 문서의 링크"
|
||||
},
|
||||
"field.fileSize": {
|
||||
"message": "파일 크기",
|
||||
"description": "업로드된 문서의 크기"
|
||||
},
|
||||
"field.state": {
|
||||
"message": "상태",
|
||||
"description": "문서 처리 상태"
|
||||
},
|
||||
"field.stateProcessing": {
|
||||
"message": "처리 중",
|
||||
"description": "문서가 처리되고 있는 중"
|
||||
},
|
||||
"field.stateCompleted": {
|
||||
"message": "처리 완료",
|
||||
"description": "문서 처리에 성공함"
|
||||
},
|
||||
"field.stateFailed": {
|
||||
"message": "처리 실패",
|
||||
"description": "문서 처리에 실패함"
|
||||
},
|
||||
"field.name": {
|
||||
"message": "이름",
|
||||
"description": "문서 이름"
|
||||
},
|
||||
"field.description": {
|
||||
"message": "설명",
|
||||
"description": "문서 설명"
|
||||
},
|
||||
"message.introductionForKnowledge": {
|
||||
"message": "문서를 지식 베이스에 추가할 수 있으며, 로봇은 응답할 때 지식 베이스의 지식을 사용할 수 있습니다.",
|
||||
"description": "지식 베이스 소개 정보"
|
||||
},
|
||||
"message.introductionForRepository": {
|
||||
"message": "지식 베이스는 문서의 집합으로, 여기에 문서를 추가할 수 있습니다. 로봇은 응답할 때 지식 베이스의 문서에서 답변할 것입니다.",
|
||||
"description": "지식 베이스 소개 정보"
|
||||
},
|
||||
"message.uploadDocumentsExceed": {
|
||||
"message": "업로드 문서 수가 한도를 초과했습니다.",
|
||||
"description": "업로드 문서 수가 한도를 초과했을 때의 오류 정보"
|
||||
},
|
||||
"message.uploadDocumentsError": {
|
||||
"message": "문서 업로드 실패",
|
||||
"description": "문서 업로드에 실패했을 때의 오류 정보"
|
||||
},
|
||||
"message.uploadDocumentsSuccess": {
|
||||
"message": "문서 업로드 성공",
|
||||
"description": "문서 업로드에 성공했을 때의 성공 정보"
|
||||
},
|
||||
"message.createDocumentSuccess": {
|
||||
"message": "문서 생성 성공",
|
||||
"description": "문서 생성에 성공했을 때의 성공 정보"
|
||||
},
|
||||
"message.startCreateDocument": {
|
||||
"message": "문서 학습 시작...",
|
||||
"description": "문서 학습을 시작할 때의 정보"
|
||||
},
|
||||
"message.createDocumentError": {
|
||||
"message": "문서 학습 실패",
|
||||
"description": "문서 학습에 실패했을 때의 오류 정보"
|
||||
},
|
||||
"message.dragOrClickToUpload": {
|
||||
"message": "드래그 또는 클릭하여 문서 업로드",
|
||||
"description": "드래그 또는 클릭하여 문서를 업로드할 때의 정보"
|
||||
},
|
||||
"message.learningDocument": {
|
||||
"message": "학습 중, 잠시 기다려 주세요...",
|
||||
"description": "문서를 학습 중일 때의 정보"
|
||||
},
|
||||
"message.startNewChat": {
|
||||
"message": "새 대화 시작",
|
||||
"description": "새 대화를 시작할 때의 정보"
|
||||
},
|
||||
"message.errorApiError": {
|
||||
"message": "응답 실패, 나중에 다시 시도해 주세요",
|
||||
"description": "응답에 실패했을 때의 오류 정보"
|
||||
},
|
||||
"message.errorBadRequest": {
|
||||
"message": "요청 내용 형식이 올바르지 않습니다. 다시 질문해 주세요",
|
||||
"description": "요청 내용 형식이 올바르지 않을 때의 오류 정보"
|
||||
},
|
||||
"message.errorNoConversation": {
|
||||
"message": "대화 내용이 존재하지 않거나 만료되었습니다. 새 대화를 시작해 주세요",
|
||||
"description": "대화 내용이 존재하지 않거나 만료되었을 때의 오류 정보"
|
||||
},
|
||||
"message.errorContentTooLarge": {
|
||||
"message": "질문 내용이 너무 길습니다. 짧게 하신 후 다시 시도해 주세요",
|
||||
"description": "질문 내용이 너무 길 때의 오류 정보"
|
||||
},
|
||||
"message.errorTooManyRequests": {
|
||||
"message": "귀하의 작업이 너무 잦습니다. 나중에 다시 시도해 주세요",
|
||||
"description": "작업이 너무 잦을 때의 오류 정보"
|
||||
},
|
||||
"message.errorUsedUp": {
|
||||
"message": "귀하의 요금제 사용량이 한도에 도달했습니다. 계속하려면 추가 사용량을 구매해 주세요",
|
||||
"description": "요금제 사용량이 한도에 도달했을 때의 오류 정보"
|
||||
},
|
||||
"message.errorUnknown": {
|
||||
"message": "알 수 없는 서버 오류가 발생했습니다. 나중에 다시 시도하거나 고객 지원에 문의해 주세요",
|
||||
"description": "알 수 없는 서버 오류가 발생했을 때의 오류 정보"
|
||||
},
|
||||
"message.errorTimeout": {
|
||||
"message": "질문에 대한 응답 시간이 초과되었습니다. 나중에 다시 시도해 주세요",
|
||||
"description": "질문에 대한 응답 시간이 초과되었을 때의 오류 정보"
|
||||
},
|
||||
"message.errorNotApplied": {
|
||||
"message": "귀하는 아직 이 서비스를 신청하지 않았습니다. 신청 후 계속 질문해 주세요",
|
||||
"description": "사용자가 아직 이 서비스를 신청하지 않았을 때의 오류 정보"
|
||||
},
|
||||
"message.confirmDelete": {
|
||||
"message": "삭제 확인",
|
||||
"description": "삭제 확인을 위한 정보"
|
||||
},
|
||||
"message.howToUse": {
|
||||
"message": "Shift+Enter로 줄 바꿈",
|
||||
"description": "줄 바꿈하는 방법에 대한 정보"
|
||||
},
|
||||
"message.createRepositorySuccess": {
|
||||
"message": "지식 베이스 생성 성공",
|
||||
"description": "지식 베이스를 성공적으로 생성했을 때의 성공 정보"
|
||||
},
|
||||
"message.createRepositoryFailed": {
|
||||
"message": "지식 베이스 생성 실패",
|
||||
"description": "지식 베이스 생성에 실패했을 때의 오류 정보"
|
||||
},
|
||||
"message.deleteRepositorySuccess": {
|
||||
"message": "지식 베이스 삭제 성공",
|
||||
"description": "지식 베이스 삭제에 성공했을 때의 성공 정보"
|
||||
},
|
||||
"message.deleteDocumentSuccess": {
|
||||
"message": "문서 삭제 성공",
|
||||
"description": "문서 삭제에 성공했을 때의 성공 정보"
|
||||
},
|
||||
"message.currentRepository": {
|
||||
"message": "현재 지식 베이스",
|
||||
"description": "현재 지식 베이스를 표시하는 정보"
|
||||
},
|
||||
"message.nameRequired": {
|
||||
"message": "이름을 입력해야 합니다",
|
||||
"description": "이름이 비어 있을 때의 오류 정보"
|
||||
},
|
||||
"message.inputRepositoryName": {
|
||||
"message": "지식 베이스 이름",
|
||||
"description": "지식 베이스 이름 입력 자리 표시자"
|
||||
},
|
||||
"message.inputRepositoryDescription": {
|
||||
"message": "귀하의 지식베이스를 한 문장으로 설명하십시오.",
|
||||
"description": "지식베이스 설명의 입력 플레이스홀더"
|
||||
},
|
||||
"message.supportedFiles": {
|
||||
"message": "지원되는 파일 형식: .docx, .doc, .pdf, .txt, .csv, .enex, .epub, .eml, .html, .htm, .shtml, .md, .odt, .ppt, .pptx",
|
||||
"description": "지원되는 파일 형식 정보를 표시합니다."
|
||||
},
|
||||
"nav.chat": {
|
||||
"message": "채팅",
|
||||
"description": "채팅의 탐색 항목"
|
||||
},
|
||||
"nav.setting": {
|
||||
"message": "설정",
|
||||
"description": "설정의 탐색 항목"
|
||||
},
|
||||
"nav.manage": {
|
||||
"message": "관리",
|
||||
"description": "관리의 탐색 항목"
|
||||
},
|
||||
"title.manage": {
|
||||
"message": "지식베이스 관리",
|
||||
"description": "지식베이스를 관리하는 제목"
|
||||
},
|
||||
"title.createRepository": {
|
||||
"message": "지식베이스 생성",
|
||||
"description": "지식베이스를 생성하는 제목"
|
||||
},
|
||||
"title.repositories": {
|
||||
"message": "지식베이스 목록",
|
||||
"description": "지식베이스 목록의 제목"
|
||||
}
|
||||
}
|
||||
@@ -1,198 +0,0 @@
|
||||
{
|
||||
"button.uploadDocuments": {
|
||||
"message": "Prześlij dokumenty",
|
||||
"description": "Tekst przycisku umożliwiający użytkownikowi przesłanie dokumentów"
|
||||
},
|
||||
"field.fileName": {
|
||||
"message": "Nazwa pliku",
|
||||
"description": "Nazwa pliku przesyłanego dokumentu"
|
||||
},
|
||||
"field.createdAt": {
|
||||
"message": "Data utworzenia",
|
||||
"description": "Czas przesłania dokumentu"
|
||||
},
|
||||
"field.fileExtension": {
|
||||
"message": "Typ pliku",
|
||||
"description": "Typ pliku przesyłanego dokumentu"
|
||||
},
|
||||
"field.fileUrl": {
|
||||
"message": "Link do pliku",
|
||||
"description": "Link do przesłanego dokumentu"
|
||||
},
|
||||
"field.fileSize": {
|
||||
"message": "Rozmiar pliku",
|
||||
"description": "Rozmiar przesyłanego dokumentu"
|
||||
},
|
||||
"field.state": {
|
||||
"message": "Status",
|
||||
"description": "Status przetwarzania dokumentu"
|
||||
},
|
||||
"field.stateProcessing": {
|
||||
"message": "Przetwarzanie",
|
||||
"description": "Dokument jest w trakcie przetwarzania"
|
||||
},
|
||||
"field.stateCompleted": {
|
||||
"message": "Zakończone",
|
||||
"description": "Dokument został pomyślnie przetworzony"
|
||||
},
|
||||
"field.stateFailed": {
|
||||
"message": "Niepowodzenie",
|
||||
"description": "Przetwarzanie dokumentu nie powiodło się"
|
||||
},
|
||||
"field.name": {
|
||||
"message": "Nazwa",
|
||||
"description": "Nazwa dokumentu"
|
||||
},
|
||||
"field.description": {
|
||||
"message": "Opis",
|
||||
"description": "Opis dokumentu"
|
||||
},
|
||||
"message.introductionForKnowledge": {
|
||||
"message": "Dokumenty mogą być dodawane do bazy wiedzy, z której robot może korzystać podczas udzielania odpowiedzi.",
|
||||
"description": "Informacja wprowadzająca dotycząca bazy wiedzy"
|
||||
},
|
||||
"message.introductionForRepository": {
|
||||
"message": "Baza wiedzy to zbiór dokumentów, do których możesz dodawać nowe dokumenty. Robot będzie odpowiadał na podstawie dokumentów w bazie wiedzy.",
|
||||
"description": "Informacja wprowadzająca dotycząca bazy wiedzy"
|
||||
},
|
||||
"message.uploadDocumentsExceed": {
|
||||
"message": "Liczba przesyłanych dokumentów przekracza limit",
|
||||
"description": "Informacja o błędzie, gdy liczba przesyłanych dokumentów przekracza limit"
|
||||
},
|
||||
"message.uploadDocumentsError": {
|
||||
"message": "Przesyłanie dokumentów nie powiodło się",
|
||||
"description": "Informacja o błędzie podczas nieudanej próby przesłania dokumentów"
|
||||
},
|
||||
"message.uploadDocumentsSuccess": {
|
||||
"message": "Dokumenty zostały pomyślnie przesłane",
|
||||
"description": "Informacja o sukcesie przesłania dokumentów"
|
||||
},
|
||||
"message.createDocumentSuccess": {
|
||||
"message": "Dokument został pomyślnie utworzony",
|
||||
"description": "Informacja o sukcesie utworzenia dokumentu"
|
||||
},
|
||||
"message.startCreateDocument": {
|
||||
"message": "Rozpoczynam naukę dokumentu...",
|
||||
"description": "Informacja przy rozpoczynaniu nauki dokumentu"
|
||||
},
|
||||
"message.createDocumentError": {
|
||||
"message": "Nie udało się nauczyć dokumentu",
|
||||
"description": "Informacja o błędzie podczas nauki dokumentu"
|
||||
},
|
||||
"message.dragOrClickToUpload": {
|
||||
"message": "Przeciągnij lub kliknij, aby przesłać dokumenty",
|
||||
"description": "Informacja o możliwości przesyłania dokumentów poprzez przeciąganie lub klikanie"
|
||||
},
|
||||
"message.learningDocument": {
|
||||
"message": "Nauka trwa, proszę czekać...",
|
||||
"description": "Informacja podczas nauki dokumentu"
|
||||
},
|
||||
"message.startNewChat": {
|
||||
"message": "Rozpocznij nową rozmowę",
|
||||
"description": "Informacja przy rozpoczynaniu nowej rozmowy"
|
||||
},
|
||||
"message.errorApiError": {
|
||||
"message": "Niepowodzenie odpowiedzi, proszę spróbować ponownie później",
|
||||
"description": "Informacja o błędzie, gdy odpowiedź się nie powiodła"
|
||||
},
|
||||
"message.errorBadRequest": {
|
||||
"message": "Format treści żądania jest niepoprawny, proszę zadać pytanie ponownie",
|
||||
"description": "Informacja o błędzie przy niepoprawnym formacie treści żądania"
|
||||
},
|
||||
"message.errorNoConversation": {
|
||||
"message": "Treść rozmowy nie istnieje lub wygasła, proszę rozpocząć nową rozmowę",
|
||||
"description": "Informacja o błędzie, gdy treść rozmowy nie istnieje lub wygasła"
|
||||
},
|
||||
"message.errorContentTooLarge": {
|
||||
"message": "Treść pytania jest zbyt długa, proszę skrócić ją i spróbować ponownie",
|
||||
"description": "Informacja o błędzie, gdy treść pytania jest zbyt długa"
|
||||
},
|
||||
"message.errorTooManyRequests": {
|
||||
"message": "Twoje działania są zbyt częste, proszę spróbować ponownie później",
|
||||
"description": "Informacja o błędzie, gdy działania są zbyt częste"
|
||||
},
|
||||
"message.errorUsedUp": {
|
||||
"message": "Wykorzystałeś już limit swojego pakietu, proszę zakupić więcej, aby kontynuować",
|
||||
"description": "Informacja o błędzie, gdy limit pakietu został przekroczony"
|
||||
},
|
||||
"message.errorUnknown": {
|
||||
"message": "Wystąpił nieznany błąd serwera, proszę spróbować ponownie później lub skontaktować się z obsługą klienta",
|
||||
"description": "Informacja o błędzie, gdy wystąpił nieznany błąd serwera"
|
||||
},
|
||||
"message.errorTimeout": {
|
||||
"message": "Przekroczono czas odpowiedzi, proszę spróbować ponownie później",
|
||||
"description": "Informacja o błędzie, gdy przekroczono czas odpowiedzi"
|
||||
},
|
||||
"message.errorNotApplied": {
|
||||
"message": "Nie zgłosiłeś się do tej usługi, proszę zgłosić się przed kontynuowaniem",
|
||||
"description": "Informacja o błędzie, gdy użytkownik nie zgłosił się do usługi"
|
||||
},
|
||||
"message.confirmDelete": {
|
||||
"message": "Potwierdź usunięcie",
|
||||
"description": "Informacja przy potwierdzeniu usunięcia"
|
||||
},
|
||||
"message.howToUse": {
|
||||
"message": "Naciśnij Shift+Enter, aby wprowadzić nową linię",
|
||||
"description": "Informacja o tym, jak wprowadzić nową linię"
|
||||
},
|
||||
"message.createRepositorySuccess": {
|
||||
"message": "Baza wiedzy została pomyślnie utworzona",
|
||||
"description": "Informacja o sukcesie utworzenia bazy wiedzy"
|
||||
},
|
||||
"message.createRepositoryFailed": {
|
||||
"message": "Nie udało się utworzyć bazy wiedzy",
|
||||
"description": "Informacja o błędzie podczas próby utworzenia bazy wiedzy"
|
||||
},
|
||||
"message.deleteRepositorySuccess": {
|
||||
"message": "Baza wiedzy została pomyślnie usunięta",
|
||||
"description": "Informacja o sukcesie usunięcia bazy wiedzy"
|
||||
},
|
||||
"message.deleteDocumentSuccess": {
|
||||
"message": "Dokument został pomyślnie usunięty",
|
||||
"description": "Informacja o sukcesie usunięcia dokumentu"
|
||||
},
|
||||
"message.currentRepository": {
|
||||
"message": "Aktualna baza wiedzy",
|
||||
"description": "Informacja o aktualnej bazie wiedzy"
|
||||
},
|
||||
"message.nameRequired": {
|
||||
"message": "Nazwa nie może być pusta",
|
||||
"description": "Informacja o błędzie, gdy nazwa jest pusta"
|
||||
},
|
||||
"message.inputRepositoryName": {
|
||||
"message": "Nazwa bazy wiedzy",
|
||||
"description": "Placeholder dla wprowadzenia nazwy bazy wiedzy"
|
||||
},
|
||||
"message.inputRepositoryDescription": {
|
||||
"message": "Opisz swoją bazę wiedzy w jednym zdaniu",
|
||||
"description": "Wprowadź opis bazy wiedzy jako miejsce na tekst"
|
||||
},
|
||||
"message.supportedFiles": {
|
||||
"message": "Obsługiwane formaty plików: .docx, .doc, .pdf, .txt, .csv, .enex, .epub, .eml, .html, .htm, .shtml, .md, .odt, .ppt, .pptx",
|
||||
"description": "Informacje o obsługiwanych formatach plików"
|
||||
},
|
||||
"nav.chat": {
|
||||
"message": "Czat",
|
||||
"description": "Element nawigacji czatu"
|
||||
},
|
||||
"nav.setting": {
|
||||
"message": "Ustawienia",
|
||||
"description": "Element nawigacji ustawień"
|
||||
},
|
||||
"nav.manage": {
|
||||
"message": "Zarządzaj",
|
||||
"description": "Element nawigacji zarządzania"
|
||||
},
|
||||
"title.manage": {
|
||||
"message": "Zarządzanie bazą wiedzy",
|
||||
"description": "Tytuł zarządzania bazą wiedzy"
|
||||
},
|
||||
"title.createRepository": {
|
||||
"message": "Utwórz bazę wiedzy",
|
||||
"description": "Tytuł utworzenia bazy wiedzy"
|
||||
},
|
||||
"title.repositories": {
|
||||
"message": "Lista baz wiedzy",
|
||||
"description": "Tytuł listy baz wiedzy"
|
||||
}
|
||||
}
|
||||
@@ -1,198 +0,0 @@
|
||||
{
|
||||
"button.uploadDocuments": {
|
||||
"message": "Carregar Documentos",
|
||||
"description": "Texto do botão que permite ao usuário carregar documentos"
|
||||
},
|
||||
"field.fileName": {
|
||||
"message": "Nome do Arquivo",
|
||||
"description": "Nome do arquivo do documento carregado"
|
||||
},
|
||||
"field.createdAt": {
|
||||
"message": "Data de Criação",
|
||||
"description": "Data e hora do upload do documento"
|
||||
},
|
||||
"field.fileExtension": {
|
||||
"message": "Tipo de Arquivo",
|
||||
"description": "Tipo do arquivo do documento carregado"
|
||||
},
|
||||
"field.fileUrl": {
|
||||
"message": "Link do Arquivo",
|
||||
"description": "Link do documento carregado"
|
||||
},
|
||||
"field.fileSize": {
|
||||
"message": "Tamanho do Arquivo",
|
||||
"description": "Tamanho do documento carregado"
|
||||
},
|
||||
"field.state": {
|
||||
"message": "Estado",
|
||||
"description": "Estado do processamento do documento"
|
||||
},
|
||||
"field.stateProcessing": {
|
||||
"message": "Processando",
|
||||
"description": "O documento está em processamento"
|
||||
},
|
||||
"field.stateCompleted": {
|
||||
"message": "Processamento Completo",
|
||||
"description": "O processamento do documento foi bem-sucedido"
|
||||
},
|
||||
"field.stateFailed": {
|
||||
"message": "Falha no Processamento",
|
||||
"description": "O processamento do documento falhou"
|
||||
},
|
||||
"field.name": {
|
||||
"message": "Nome",
|
||||
"description": "Nome do documento"
|
||||
},
|
||||
"field.description": {
|
||||
"message": "Descrição",
|
||||
"description": "Descrição do documento"
|
||||
},
|
||||
"message.introductionForKnowledge": {
|
||||
"message": "Os documentos podem ser adicionados ao repositório de conhecimento, e o robô pode usar o conhecimento do repositório ao responder.",
|
||||
"description": "Informação introdutória sobre o repositório de conhecimento"
|
||||
},
|
||||
"message.introductionForRepository": {
|
||||
"message": "O repositório de conhecimento é uma coleção de documentos onde você pode adicionar novos documentos. O robô irá responder a partir dos documentos no repositório.",
|
||||
"description": "Informação introdutória sobre o repositório de conhecimento"
|
||||
},
|
||||
"message.uploadDocumentsExceed": {
|
||||
"message": "Quantidade de documentos carregados excedeu o limite",
|
||||
"description": "Mensagem de erro quando a quantidade de documentos carregados excede o limite"
|
||||
},
|
||||
"message.uploadDocumentsError": {
|
||||
"message": "Falha ao carregar documentos",
|
||||
"description": "Mensagem de erro quando falha no carregamento de documentos"
|
||||
},
|
||||
"message.uploadDocumentsSuccess": {
|
||||
"message": "Documentos carregados com sucesso",
|
||||
"description": "Mensagem de sucesso quando os documentos são carregados com sucesso"
|
||||
},
|
||||
"message.createDocumentSuccess": {
|
||||
"message": "Documento criado com sucesso",
|
||||
"description": "Mensagem de sucesso quando o documento é criado com sucesso"
|
||||
},
|
||||
"message.startCreateDocument": {
|
||||
"message": "Iniciando o processamento do documento...",
|
||||
"description": "Mensagem ao iniciar o processamento do documento"
|
||||
},
|
||||
"message.createDocumentError": {
|
||||
"message": "Falha no processamento do documento",
|
||||
"description": "Mensagem de erro ao falhar no processamento do documento"
|
||||
},
|
||||
"message.dragOrClickToUpload": {
|
||||
"message": "Arraste ou clique para carregar documentos",
|
||||
"description": "Mensagem para arrastar ou clicar e carregar documentos"
|
||||
},
|
||||
"message.learningDocument": {
|
||||
"message": "Processando, por favor aguarde...",
|
||||
"description": "Mensagem durante o processamento do documento"
|
||||
},
|
||||
"message.startNewChat": {
|
||||
"message": "Iniciar uma nova conversa",
|
||||
"description": "Mensagem ao iniciar uma nova conversa"
|
||||
},
|
||||
"message.errorApiError": {
|
||||
"message": "Falha na resposta, por favor tente novamente mais tarde",
|
||||
"description": "Mensagem de erro quando há falha na resposta"
|
||||
},
|
||||
"message.errorBadRequest": {
|
||||
"message": "Formato do conteúdo da solicitação está incorreto, por favor reformule a pergunta",
|
||||
"description": "Mensagem de erro quando o formato da solicitação está incorreto"
|
||||
},
|
||||
"message.errorNoConversation": {
|
||||
"message": "Conteúdo da conversa não existe ou expirou, por favor inicie uma nova conversa",
|
||||
"description": "Mensagem de erro quando o conteúdo da conversa não existe ou expirou"
|
||||
},
|
||||
"message.errorContentTooLarge": {
|
||||
"message": "O conteúdo da pergunta é muito longo, por favor encurte e tente novamente",
|
||||
"description": "Mensagem de erro quando o conteúdo da pergunta é muito longo"
|
||||
},
|
||||
"message.errorTooManyRequests": {
|
||||
"message": "Suas ações estão muito frequentes, por favor tente novamente mais tarde",
|
||||
"description": "Mensagem de erro quando as ações são muito frequentes"
|
||||
},
|
||||
"message.errorUsedUp": {
|
||||
"message": "Seu limite de uso foi atingido, por favor adquira mais uso para continuar",
|
||||
"description": "Mensagem de erro quando o limite de uso foi atingido"
|
||||
},
|
||||
"message.errorUnknown": {
|
||||
"message": "Ocorreu um erro desconhecido no servidor, por favor tente novamente mais tarde ou entre em contato com o suporte",
|
||||
"description": "Mensagem de erro quando ocorre um erro desconhecido no servidor"
|
||||
},
|
||||
"message.errorTimeout": {
|
||||
"message": "Tempo de resposta excedido, por favor tente novamente mais tarde",
|
||||
"description": "Mensagem de erro quando o tempo de resposta é excedido"
|
||||
},
|
||||
"message.errorNotApplied": {
|
||||
"message": "Você ainda não solicitou este serviço, por favor solicite antes de continuar com a pergunta",
|
||||
"description": "Mensagem de erro quando o usuário ainda não solicitou o serviço"
|
||||
},
|
||||
"message.confirmDelete": {
|
||||
"message": "Confirmar Deleção",
|
||||
"description": "Mensagem de confirmação ao deletar"
|
||||
},
|
||||
"message.howToUse": {
|
||||
"message": "Pressione Shift+Enter para quebra de linha",
|
||||
"description": "Instruções sobre como fazer quebra de linha"
|
||||
},
|
||||
"message.createRepositorySuccess": {
|
||||
"message": "Repositório de conhecimento criado com sucesso",
|
||||
"description": "Mensagem de sucesso ao criar o repositório de conhecimento"
|
||||
},
|
||||
"message.createRepositoryFailed": {
|
||||
"message": "Falha ao criar repositório de conhecimento",
|
||||
"description": "Mensagem de erro ao falhar na criação do repositório de conhecimento"
|
||||
},
|
||||
"message.deleteRepositorySuccess": {
|
||||
"message": "Repositório de conhecimento deletado com sucesso",
|
||||
"description": "Mensagem de sucesso ao deletar o repositório de conhecimento"
|
||||
},
|
||||
"message.deleteDocumentSuccess": {
|
||||
"message": "Documento deletado com sucesso",
|
||||
"description": "Mensagem de sucesso ao deletar o documento"
|
||||
},
|
||||
"message.currentRepository": {
|
||||
"message": "Repositório de conhecimento atual",
|
||||
"description": "Informação sobre o repositório de conhecimento atual"
|
||||
},
|
||||
"message.nameRequired": {
|
||||
"message": "O nome não pode estar vazio",
|
||||
"description": "Mensagem de erro quando o nome está vazio"
|
||||
},
|
||||
"message.inputRepositoryName": {
|
||||
"message": "Nome do Repositório",
|
||||
"description": "Placeholder para entrada do nome do repositório"
|
||||
},
|
||||
"message.inputRepositoryDescription": {
|
||||
"message": "Descreva seu repositório em uma frase",
|
||||
"description": "Placeholder para a descrição do repositório"
|
||||
},
|
||||
"message.supportedFiles": {
|
||||
"message": "Tipos de arquivos suportados: .docx, .doc, .pdf, .txt, .csv, .enex, .epub, .eml, .html, .htm, .shtml, .md, .odt, .ppt, .pptx",
|
||||
"description": "Informação sobre os tipos de arquivos suportados"
|
||||
},
|
||||
"nav.chat": {
|
||||
"message": "Chat",
|
||||
"description": "Item de navegação para o chat"
|
||||
},
|
||||
"nav.setting": {
|
||||
"message": "Configurações",
|
||||
"description": "Item de navegação para as configurações"
|
||||
},
|
||||
"nav.manage": {
|
||||
"message": "Gerenciar",
|
||||
"description": "Item de navegação para gerenciar"
|
||||
},
|
||||
"title.manage": {
|
||||
"message": "Gerenciar Repositório",
|
||||
"description": "Título para gerenciar o repositório"
|
||||
},
|
||||
"title.createRepository": {
|
||||
"message": "Criar Repositório",
|
||||
"description": "Título para criar um repositório"
|
||||
},
|
||||
"title.repositories": {
|
||||
"message": "Lista de Repositórios",
|
||||
"description": "Título para a lista de repositórios"
|
||||
}
|
||||
}
|
||||
@@ -1,198 +0,0 @@
|
||||
{
|
||||
"button.uploadDocuments": {
|
||||
"message": "Загрузить документы",
|
||||
"description": "Текст кнопки, позволяющий пользователю загружать документы"
|
||||
},
|
||||
"field.fileName": {
|
||||
"message": "Имя файла",
|
||||
"description": "Имя загружаемого документа"
|
||||
},
|
||||
"field.createdAt": {
|
||||
"message": "Дата создания",
|
||||
"description": "Время загрузки документа"
|
||||
},
|
||||
"field.fileExtension": {
|
||||
"message": "Тип файла",
|
||||
"description": "Тип загружаемого документа"
|
||||
},
|
||||
"field.fileUrl": {
|
||||
"message": "Ссылка на файл",
|
||||
"description": "Ссылка на загружаемый документ"
|
||||
},
|
||||
"field.fileSize": {
|
||||
"message": "Размер файла",
|
||||
"description": "Размер загружаемого документа"
|
||||
},
|
||||
"field.state": {
|
||||
"message": "Статус",
|
||||
"description": "Статус обработки документа"
|
||||
},
|
||||
"field.stateProcessing": {
|
||||
"message": "В процессе обучения",
|
||||
"description": "Документ находится в процессе обработки"
|
||||
},
|
||||
"field.stateCompleted": {
|
||||
"message": "Обучение завершено",
|
||||
"description": "Документ успешно обработан"
|
||||
},
|
||||
"field.stateFailed": {
|
||||
"message": "Ошибка обучения",
|
||||
"description": "Не удалось обработать документ"
|
||||
},
|
||||
"field.name": {
|
||||
"message": "Название",
|
||||
"description": "Название документа"
|
||||
},
|
||||
"field.description": {
|
||||
"message": "Описание",
|
||||
"description": "Описание документа"
|
||||
},
|
||||
"message.introductionForKnowledge": {
|
||||
"message": "Документы могут быть добавлены в базу знаний, и бот сможет использовать знания из базы при ответах.",
|
||||
"description": "Информация о базе знаний"
|
||||
},
|
||||
"message.introductionForRepository": {
|
||||
"message": "База знаний — это собрание документов, которые вы можете добавить. Бот будет отвечать, используя документы из базы знаний.",
|
||||
"description": "Информация о базе знаний"
|
||||
},
|
||||
"message.uploadDocumentsExceed": {
|
||||
"message": "Количество загружаемых документов превысило лимит",
|
||||
"description": "Сообщение об ошибке, когда количество загружаемых документов превышает лимит"
|
||||
},
|
||||
"message.uploadDocumentsError": {
|
||||
"message": "Ошибка загрузки документа",
|
||||
"description": "Сообщение об ошибке при загрузке документа"
|
||||
},
|
||||
"message.uploadDocumentsSuccess": {
|
||||
"message": "Документ успешно загружен",
|
||||
"description": "Сообщение об успешной загрузке документа"
|
||||
},
|
||||
"message.createDocumentSuccess": {
|
||||
"message": "Документ успешно создан",
|
||||
"description": "Сообщение об успешном создании документа"
|
||||
},
|
||||
"message.startCreateDocument": {
|
||||
"message": "Начало обучения документа...",
|
||||
"description": "Информация о начале обучения документа"
|
||||
},
|
||||
"message.createDocumentError": {
|
||||
"message": "Ошибка обучения документа",
|
||||
"description": "Сообщение об ошибке при обучении документа"
|
||||
},
|
||||
"message.dragOrClickToUpload": {
|
||||
"message": "Перетащите или нажмите для загрузки документа",
|
||||
"description": "Информация о том, как загрузить документ"
|
||||
},
|
||||
"message.learningDocument": {
|
||||
"message": "Обучение идет, пожалуйста подождите...",
|
||||
"description": "Информация о процессе обучения документа"
|
||||
},
|
||||
"message.startNewChat": {
|
||||
"message": "Начать новый диалог",
|
||||
"description": "Информация о начале нового диалога"
|
||||
},
|
||||
"message.errorApiError": {
|
||||
"message": "Ошибка ответа, пожалуйста, попробуйте позже",
|
||||
"description": "Сообщение об ошибке при сбое ответа"
|
||||
},
|
||||
"message.errorBadRequest": {
|
||||
"message": "Формат содержимого запроса неверен, пожалуйста, задайте вопрос еще раз",
|
||||
"description": "Сообщение об ошибке при неверном формате содержимого запроса"
|
||||
},
|
||||
"message.errorNoConversation": {
|
||||
"message": "Содержимое разговора не существует или истекло, пожалуйста, начните новый разговор",
|
||||
"description": "Сообщение об ошибке, когда содержимое разговора не существует или истекло"
|
||||
},
|
||||
"message.errorContentTooLarge": {
|
||||
"message": "Содержание вопроса слишком длинное, пожалуйста, сократите и попробуйте снова",
|
||||
"description": "Сообщение об ошибке, когда содержание вопроса слишком длинное"
|
||||
},
|
||||
"message.errorTooManyRequests": {
|
||||
"message": "Ваши действия слишком частые, пожалуйста, попробуйте позже",
|
||||
"description": "Сообщение об ошибке при слишком частых действиях"
|
||||
},
|
||||
"message.errorUsedUp": {
|
||||
"message": "Ваш лимит использования исчерпан, пожалуйста, купите больше, чтобы продолжить",
|
||||
"description": "Сообщение об ошибке, когда лимит использования исчерпан"
|
||||
},
|
||||
"message.errorUnknown": {
|
||||
"message": "Произошла неизвестная ошибка сервера, пожалуйста, попробуйте позже или свяжитесь с поддержкой",
|
||||
"description": "Сообщение об ошибке при неизвестной ошибке сервера"
|
||||
},
|
||||
"message.errorTimeout": {
|
||||
"message": "Время ответа на вопрос истекло, пожалуйста, попробуйте позже",
|
||||
"description": "Сообщение об ошибке при истечении времени ответа"
|
||||
},
|
||||
"message.errorNotApplied": {
|
||||
"message": "Вы еще не подали заявку на эту услугу, пожалуйста, подайте заявку, чтобы продолжить задавать вопросы",
|
||||
"description": "Сообщение об ошибке, когда пользователь еще не подал заявку на эту услугу"
|
||||
},
|
||||
"message.confirmDelete": {
|
||||
"message": "Подтвердите удаление",
|
||||
"description": "Информация о подтверждении удаления"
|
||||
},
|
||||
"message.howToUse": {
|
||||
"message": "Нажмите Shift+Enter для переноса строки",
|
||||
"description": "Информация о том, как переносить строку"
|
||||
},
|
||||
"message.createRepositorySuccess": {
|
||||
"message": "База знаний успешно создана",
|
||||
"description": "Сообщение об успешном создании базы знаний"
|
||||
},
|
||||
"message.createRepositoryFailed": {
|
||||
"message": "Ошибка создания базы знаний",
|
||||
"description": "Сообщение об ошибке при создании базы знаний"
|
||||
},
|
||||
"message.deleteRepositorySuccess": {
|
||||
"message": "База знаний успешно удалена",
|
||||
"description": "Сообщение об успешном удалении базы знаний"
|
||||
},
|
||||
"message.deleteDocumentSuccess": {
|
||||
"message": "Документ успешно удален",
|
||||
"description": "Сообщение об успешном удалении документа"
|
||||
},
|
||||
"message.currentRepository": {
|
||||
"message": "Текущая база знаний",
|
||||
"description": "Информация о текущей базе знаний"
|
||||
},
|
||||
"message.nameRequired": {
|
||||
"message": "Название не может быть пустым",
|
||||
"description": "Сообщение об ошибке, когда название пустое"
|
||||
},
|
||||
"message.inputRepositoryName": {
|
||||
"message": "Название базы знаний",
|
||||
"description": "Заполнитель для ввода названия базы знаний"
|
||||
},
|
||||
"message.inputRepositoryDescription": {
|
||||
"message": "Опишите свой репозиторий одним предложением",
|
||||
"description": "Заполнитель ввода для описания репозитория"
|
||||
},
|
||||
"message.supportedFiles": {
|
||||
"message": "Поддерживаемые типы файлов: .docx, .doc, .pdf, .txt, .csv, .enex, .epub, .eml, .html, .htm, .shtml, .md, .odt, .ppt, .pptx",
|
||||
"description": "Информация о поддерживаемых типах файлов"
|
||||
},
|
||||
"nav.chat": {
|
||||
"message": "Чат",
|
||||
"description": "Элемент навигации для чата"
|
||||
},
|
||||
"nav.setting": {
|
||||
"message": "Настройки",
|
||||
"description": "Элемент навигации для настроек"
|
||||
},
|
||||
"nav.manage": {
|
||||
"message": "Управление",
|
||||
"description": "Элемент навигации для управления"
|
||||
},
|
||||
"title.manage": {
|
||||
"message": "Управление репозиторием",
|
||||
"description": "Заголовок для управления репозиторием"
|
||||
},
|
||||
"title.createRepository": {
|
||||
"message": "Создать репозиторий",
|
||||
"description": "Заголовок для создания репозитория"
|
||||
},
|
||||
"title.repositories": {
|
||||
"message": "Список репозиториев",
|
||||
"description": "Заголовок для списка репозиториев"
|
||||
}
|
||||
}
|
||||
@@ -1,198 +0,0 @@
|
||||
{
|
||||
"button.uploadDocuments": {
|
||||
"message": "Постави документе",
|
||||
"description": "Текст на дугмету, који омогућава кориснику да отпреми документе"
|
||||
},
|
||||
"field.fileName": {
|
||||
"message": "Име датотеке",
|
||||
"description": "Име датотеке која се отпрема"
|
||||
},
|
||||
"field.createdAt": {
|
||||
"message": "Датум креирања",
|
||||
"description": "Време отпреме документа"
|
||||
},
|
||||
"field.fileExtension": {
|
||||
"message": "Тип датотеке",
|
||||
"description": "Тип датотеке која се отпрема"
|
||||
},
|
||||
"field.fileUrl": {
|
||||
"message": "Линк до датотеке",
|
||||
"description": "Линк до документа који се отпрема"
|
||||
},
|
||||
"field.fileSize": {
|
||||
"message": "Величина датотеке",
|
||||
"description": "Величина отпремљеног документа"
|
||||
},
|
||||
"field.state": {
|
||||
"message": "Статус",
|
||||
"description": "Статус обраде документа"
|
||||
},
|
||||
"field.stateProcessing": {
|
||||
"message": "У обради",
|
||||
"description": "Документ је у обради"
|
||||
},
|
||||
"field.stateCompleted": {
|
||||
"message": "Обрада завршена",
|
||||
"description": "Документ је успешно обрађен"
|
||||
},
|
||||
"field.stateFailed": {
|
||||
"message": "Обрада није успела",
|
||||
"description": "Обрада документа није успела"
|
||||
},
|
||||
"field.name": {
|
||||
"message": "Назив",
|
||||
"description": "Назив документа"
|
||||
},
|
||||
"field.description": {
|
||||
"message": "Опис",
|
||||
"description": "Опис документа"
|
||||
},
|
||||
"message.introductionForKnowledge": {
|
||||
"message": "Документи могу бити додати у базу знања, а робот може користити информације из базе знања током одговарања.",
|
||||
"description": "Информације о бази знања"
|
||||
},
|
||||
"message.introductionForRepository": {
|
||||
"message": "База знања је збирка докумената, можете јој додати документе. Робот ће одговарати на основу докумената из базе знања.",
|
||||
"description": "Информације о бази знања"
|
||||
},
|
||||
"message.uploadDocumentsExceed": {
|
||||
"message": "Број отпремљених докумената превазилази ограничење",
|
||||
"description": "Информација о грешци када број отпремљених докумената пређе ограничење"
|
||||
},
|
||||
"message.uploadDocumentsError": {
|
||||
"message": "Отпрема докумената није успела",
|
||||
"description": "Информација о грешци када отпремање докумената не успе"
|
||||
},
|
||||
"message.uploadDocumentsSuccess": {
|
||||
"message": "Документи су успешно отпремљени",
|
||||
"description": "Информација о успеху када се документи успешно отпреме"
|
||||
},
|
||||
"message.createDocumentSuccess": {
|
||||
"message": "Документи су успешно креирани",
|
||||
"description": "Информација о успеху када се документ успешно креира"
|
||||
},
|
||||
"message.startCreateDocument": {
|
||||
"message": "Почиње обрада документа...",
|
||||
"description": "Информација када почиње обрада документа"
|
||||
},
|
||||
"message.createDocumentError": {
|
||||
"message": "Обрада документа није успела",
|
||||
"description": "Информација о грешци када обрада документа не успе"
|
||||
},
|
||||
"message.dragOrClickToUpload": {
|
||||
"message": "Повучите или кликните да бисте отпремили документ",
|
||||
"description": "Информација о томе како отпремити документ"
|
||||
},
|
||||
"message.learningDocument": {
|
||||
"message": "У обради, молимо сачекајте...",
|
||||
"description": "Информација током обраде документа"
|
||||
},
|
||||
"message.startNewChat": {
|
||||
"message": "Почни нови разговор",
|
||||
"description": "Информација када почиње нови разговор"
|
||||
},
|
||||
"message.errorApiError": {
|
||||
"message": "Одговор није успео, молимо покушајте поново касније",
|
||||
"description": "Информација о грешци када одговор не успе"
|
||||
},
|
||||
"message.errorBadRequest": {
|
||||
"message": "Формат садржаја захтева је погрешан, молимо поново формулишите питање",
|
||||
"description": "Информација о грешци када формат захтева није исправан"
|
||||
},
|
||||
"message.errorNoConversation": {
|
||||
"message": "Садржај разговора не постоји или је истекао, молимо почните нови разговор",
|
||||
"description": "Информација о грешци када садржај разговора не постоји"
|
||||
},
|
||||
"message.errorContentTooLarge": {
|
||||
"message": "Садржај питања је превелик, молимо смањите и покушајте поново",
|
||||
"description": "Информација о грешци када је садржај питања превелик"
|
||||
},
|
||||
"message.errorTooManyRequests": {
|
||||
"message": "Ваше акције су прекомерне, молимо покушајте поново касније",
|
||||
"description": "Информација о грешци када су акције прекомерне"
|
||||
},
|
||||
"message.errorUsedUp": {
|
||||
"message": "Ваш пакет је достигнут до максимума, молимо купите више за наставак",
|
||||
"description": "Информација о грешци када је пакетрачка употреба достигла максимум"
|
||||
},
|
||||
"message.errorUnknown": {
|
||||
"message": "Дошло је до непознате грешке на серверу, молимо покушајте поново или контактирајте корисничку подршку",
|
||||
"description": "Информација о непознатој грешци на серверу"
|
||||
},
|
||||
"message.errorTimeout": {
|
||||
"message": "Одговор на питање је временски истекао, молимо покушајте поново касније",
|
||||
"description": "Информација о грешци када је одговор временски истекао"
|
||||
},
|
||||
"message.errorNotApplied": {
|
||||
"message": "Нисте се пријавили за ову услугу, молимо пријавите се и наставите с питањима",
|
||||
"description": "Информација о грешци када корисник није пријављен за услугу"
|
||||
},
|
||||
"message.confirmDelete": {
|
||||
"message": "Потврдите брисање",
|
||||
"description": "Информација о потврди брисања"
|
||||
},
|
||||
"message.howToUse": {
|
||||
"message": "Притисните Shift+Enter за нови ред",
|
||||
"description": "Информација о томе како направити нови ред"
|
||||
},
|
||||
"message.createRepositorySuccess": {
|
||||
"message": "База знања је успешно креирана",
|
||||
"description": "Информација о успеху када је база знања успешно креирана"
|
||||
},
|
||||
"message.createRepositoryFailed": {
|
||||
"message": "Креирање базе знања није успело",
|
||||
"description": "Информација о грешци када креирање базе знања не успе"
|
||||
},
|
||||
"message.deleteRepositorySuccess": {
|
||||
"message": "База знања је успешно обрисана",
|
||||
"description": "Информација о успеху када је база знања успешно обрисана"
|
||||
},
|
||||
"message.deleteDocumentSuccess": {
|
||||
"message": "Документ је успешно обрисан",
|
||||
"description": "Информација о успеху када је документ успешно обрисан"
|
||||
},
|
||||
"message.currentRepository": {
|
||||
"message": "Течна база знања",
|
||||
"description": "Информација о тренутној бази знања"
|
||||
},
|
||||
"message.nameRequired": {
|
||||
"message": "Назив не може бити празан",
|
||||
"description": "Информација о грешци када је назив празан"
|
||||
},
|
||||
"message.inputRepositoryName": {
|
||||
"message": "Назив базе знања",
|
||||
"description": "Позитивно питање за унос назива базе знања"
|
||||
},
|
||||
"message.inputRepositoryDescription": {
|
||||
"message": "Opišite svoju bazu znanja u jednoj rečenici",
|
||||
"description": "Placeholder za unos opisa baze znanja"
|
||||
},
|
||||
"message.supportedFiles": {
|
||||
"message": "Podržani tipovi datoteka: .docx, .doc, .pdf, .txt, .csv, .enex, .epub, .eml, .html, .htm, .shtml, .md, .odt, .ppt, .pptx",
|
||||
"description": "Informacija o podržanim tipovima datoteka"
|
||||
},
|
||||
"nav.chat": {
|
||||
"message": "Razgovor",
|
||||
"description": "Navigaciona stavka za razgovor"
|
||||
},
|
||||
"nav.setting": {
|
||||
"message": "Podešavanja",
|
||||
"description": "Navigaciona stavka za podešavanja"
|
||||
},
|
||||
"nav.manage": {
|
||||
"message": "Upravljanje",
|
||||
"description": "Navigaciona stavka za upravljanje"
|
||||
},
|
||||
"title.manage": {
|
||||
"message": "Upravljanje bazom znanja",
|
||||
"description": "Naslov za upravljanje bazom znanja"
|
||||
},
|
||||
"title.createRepository": {
|
||||
"message": "Kreiraj bazu znanja",
|
||||
"description": "Naslov za kreiranje baze znanja"
|
||||
},
|
||||
"title.repositories": {
|
||||
"message": "Lista baza znanja",
|
||||
"description": "Naslov za listu baza znanja"
|
||||
}
|
||||
}
|
||||
@@ -1,198 +0,0 @@
|
||||
{
|
||||
"button.uploadDocuments": {
|
||||
"message": "Ladda upp dokument",
|
||||
"description": "Knapptext som låter användaren ladda upp dokument"
|
||||
},
|
||||
"field.fileName": {
|
||||
"message": "Filnamn",
|
||||
"description": "Filnamn för det uppladdade dokumentet"
|
||||
},
|
||||
"field.createdAt": {
|
||||
"message": "Skapat den",
|
||||
"description": "Tidpunkt för dokumentets uppladdning"
|
||||
},
|
||||
"field.fileExtension": {
|
||||
"message": "Filtyp",
|
||||
"description": "Filtyp för det uppladdade dokumentet"
|
||||
},
|
||||
"field.fileUrl": {
|
||||
"message": "Fil-URL",
|
||||
"description": "Länk till det uppladdade dokumentet"
|
||||
},
|
||||
"field.fileSize": {
|
||||
"message": "Filstorlek",
|
||||
"description": "Storlek på det uppladdade dokumentet"
|
||||
},
|
||||
"field.state": {
|
||||
"message": "Status",
|
||||
"description": "Behandlingsstatus för dokumentet"
|
||||
},
|
||||
"field.stateProcessing": {
|
||||
"message": "Bearbetar",
|
||||
"description": "Dokumentet är under bearbetning"
|
||||
},
|
||||
"field.stateCompleted": {
|
||||
"message": "Bearbetning slutförd",
|
||||
"description": "Dokumentbehandlingen lyckades"
|
||||
},
|
||||
"field.stateFailed": {
|
||||
"message": "Bearbetning misslyckades",
|
||||
"description": "Dokumentbehandlingen misslyckades"
|
||||
},
|
||||
"field.name": {
|
||||
"message": "Namn",
|
||||
"description": "Dokumentets namn"
|
||||
},
|
||||
"field.description": {
|
||||
"message": "Beskrivning",
|
||||
"description": "Dokumentets beskrivning"
|
||||
},
|
||||
"message.introductionForKnowledge": {
|
||||
"message": "Dokumentet kan läggas till i kunskapsbasen, roboten kan använda kunskapen i kunskapsbasen när den svarar.",
|
||||
"description": "Information om kunskapsbasen"
|
||||
},
|
||||
"message.introductionForRepository": {
|
||||
"message": "Kunskapsbasen är en samling av dokument, du kan lägga till dokument till den. Robotens svar kommer att baseras på dokumenten i kunskapsbasen.",
|
||||
"description": "Information om kunskapsbasen"
|
||||
},
|
||||
"message.uploadDocumentsExceed": {
|
||||
"message": "Antalet uppladdade dokument överskrider gränsen",
|
||||
"description": "Felmeddelande när antalet uppladdade dokument överskrider gränsen"
|
||||
},
|
||||
"message.uploadDocumentsError": {
|
||||
"message": "Misslyckades med att ladda upp dokument",
|
||||
"description": "Felmeddelande när uppladdningen av dokument misslyckas"
|
||||
},
|
||||
"message.uploadDocumentsSuccess": {
|
||||
"message": "Dokumentet har laddats upp",
|
||||
"description": "Informationsmeddelande när dokumentet laddas upp framgångsrikt"
|
||||
},
|
||||
"message.createDocumentSuccess": {
|
||||
"message": "Dokumentet har skapats",
|
||||
"description": "Informationsmeddelande när dokumentet skapas framgångsrikt"
|
||||
},
|
||||
"message.startCreateDocument": {
|
||||
"message": "Startar dokumentbearbetning...",
|
||||
"description": "Information när dokumentbearbetningen startar"
|
||||
},
|
||||
"message.createDocumentError": {
|
||||
"message": "Misslyckades med att bearbeta dokument",
|
||||
"description": "Felmeddelande när dokumentbearbetningen misslyckas"
|
||||
},
|
||||
"message.dragOrClickToUpload": {
|
||||
"message": "Dra eller klicka för att ladda upp dokument",
|
||||
"description": "Information när man drar eller klickar för att ladda upp dokument"
|
||||
},
|
||||
"message.learningDocument": {
|
||||
"message": "Bearbetar, vänligen vänta...",
|
||||
"description": "Information när dokument bearbetas"
|
||||
},
|
||||
"message.startNewChat": {
|
||||
"message": "Starta ny konversation",
|
||||
"description": "Information när en ny konversation startas"
|
||||
},
|
||||
"message.errorApiError": {
|
||||
"message": "Svar misslyckades, vänligen försök igen senare",
|
||||
"description": "Felmeddelande när svaret misslyckas"
|
||||
},
|
||||
"message.errorBadRequest": {
|
||||
"message": "Felaktigt format på begäran, vänligen försök igen",
|
||||
"description": "Felmeddelande när begärans format är felaktigt"
|
||||
},
|
||||
"message.errorNoConversation": {
|
||||
"message": "Konversationen finns inte eller har gått ut, vänligen starta en ny konversation",
|
||||
"description": "Felmeddelande när konversationen inte finns eller har gått ut"
|
||||
},
|
||||
"message.errorContentTooLarge": {
|
||||
"message": "Frågan är för lång, vänligen gör den kortare och försök igen",
|
||||
"description": "Felmeddelande när frågan är för lång"
|
||||
},
|
||||
"message.errorTooManyRequests": {
|
||||
"message": "Du gör för många begärningar, vänligen försök igen senare",
|
||||
"description": "Felmeddelande när begärningarna är för många"
|
||||
},
|
||||
"message.errorUsedUp": {
|
||||
"message": "Din användning har nått gränsen, vänligen köp mer för att fortsätta",
|
||||
"description": "Felmeddelande när användningsgränsen har nåtts"
|
||||
},
|
||||
"message.errorUnknown": {
|
||||
"message": "Ett okänt serverfel har inträffat, vänligen försök igen senare eller kontakta supporten",
|
||||
"description": "Felmeddelande vid ett okänt serverfel"
|
||||
},
|
||||
"message.errorTimeout": {
|
||||
"message": "Timeout vid svar, vänligen försök igen senare",
|
||||
"description": "Felmeddelande vid timeout av svar"
|
||||
},
|
||||
"message.errorNotApplied": {
|
||||
"message": "Du har ännu inte ansökt om denna tjänst, vänligen ansök innan du fortsätter",
|
||||
"description": "Felmeddelande vid brist på användaransökan för tjänsten"
|
||||
},
|
||||
"message.confirmDelete": {
|
||||
"message": "Bekräfta borttagning",
|
||||
"description": "Information för att bekräfta borttagning"
|
||||
},
|
||||
"message.howToUse": {
|
||||
"message": "Tryck på Shift+Enter för att skapa en radbrytning",
|
||||
"description": "Information om hur man gör radbrytningar"
|
||||
},
|
||||
"message.createRepositorySuccess": {
|
||||
"message": "Kunskapsbasen har skapats",
|
||||
"description": "Informationsmeddelande när kunskapsbasen skapas framgångsrikt"
|
||||
},
|
||||
"message.createRepositoryFailed": {
|
||||
"message": "Kunskapsbasen skapades inte",
|
||||
"description": "Felmeddelande vid misslyckande av skapande av kunskapsbasen"
|
||||
},
|
||||
"message.deleteRepositorySuccess": {
|
||||
"message": "Kunskapsbasen har raderats",
|
||||
"description": "Informationsmeddelande när kunskapsbasen raderas framgångsrikt"
|
||||
},
|
||||
"message.deleteDocumentSuccess": {
|
||||
"message": "Dokumentet har raderats",
|
||||
"description": "Informationsmeddelande när dokumentet raderas framgångsrikt"
|
||||
},
|
||||
"message.currentRepository": {
|
||||
"message": "Aktuell kunskapsbas",
|
||||
"description": "Information som visar den aktuella kunskapsbasen"
|
||||
},
|
||||
"message.nameRequired": {
|
||||
"message": "Namnet får inte vara tomt",
|
||||
"description": "Felmeddelande när namnet är tomt"
|
||||
},
|
||||
"message.inputRepositoryName": {
|
||||
"message": "Namn på kunskapsbas",
|
||||
"description": "Platshållare för namn på kunskapsbas"
|
||||
},
|
||||
"message.inputRepositoryDescription": {
|
||||
"message": "Beskriv ditt kunskapsdatabas med en mening",
|
||||
"description": "Platzholder för inmatning av kunskapsdatabasbeskrivning"
|
||||
},
|
||||
"message.supportedFiles": {
|
||||
"message": "Stödda filtyper: .docx, .doc, .pdf, .txt, .csv, .enex, .epub, .eml, .html, .htm, .shtml, .md, .odt, .ppt, .pptx",
|
||||
"description": "Information som visar stödda filtyper"
|
||||
},
|
||||
"nav.chat": {
|
||||
"message": "Chatt",
|
||||
"description": "Navigationspost för chatt"
|
||||
},
|
||||
"nav.setting": {
|
||||
"message": "Inställningar",
|
||||
"description": "Navigationspost för inställningar"
|
||||
},
|
||||
"nav.manage": {
|
||||
"message": "Hantera",
|
||||
"description": "Navigationspost för hantering"
|
||||
},
|
||||
"title.manage": {
|
||||
"message": "Hantera kunskapsdatabas",
|
||||
"description": "Titel för hantering av kunskapsdatabas"
|
||||
},
|
||||
"title.createRepository": {
|
||||
"message": "Skapa kunskapsdatabas",
|
||||
"description": "Titel för skapande av kunskapsdatabas"
|
||||
},
|
||||
"title.repositories": {
|
||||
"message": "Lista över kunskapsdatabaser",
|
||||
"description": "Titel för lista över kunskapsdatabaser"
|
||||
}
|
||||
}
|
||||
@@ -1,198 +0,0 @@
|
||||
{
|
||||
"button.uploadDocuments": {
|
||||
"message": "Завантажити документи",
|
||||
"description": "Текст кнопки, який дозволяє користувачу завантажити документи"
|
||||
},
|
||||
"field.fileName": {
|
||||
"message": "Ім'я файлу",
|
||||
"description": "Ім'я файлу для завантаження документа"
|
||||
},
|
||||
"field.createdAt": {
|
||||
"message": "Час створення",
|
||||
"description": "Час завантаження документа"
|
||||
},
|
||||
"field.fileExtension": {
|
||||
"message": "Тип файлу",
|
||||
"description": "Тип файлу для завантаження документа"
|
||||
},
|
||||
"field.fileUrl": {
|
||||
"message": "Посилання на файл",
|
||||
"description": "Посилання на завантажений документ"
|
||||
},
|
||||
"field.fileSize": {
|
||||
"message": "Розмір файлу",
|
||||
"description": "Розмір завантаженого документа"
|
||||
},
|
||||
"field.state": {
|
||||
"message": "Стан",
|
||||
"description": "Стан обробки документа"
|
||||
},
|
||||
"field.stateProcessing": {
|
||||
"message": "Обробка",
|
||||
"description": "Документ обробляється"
|
||||
},
|
||||
"field.stateCompleted": {
|
||||
"message": "Обробка завершена",
|
||||
"description": "Документ успішно оброблений"
|
||||
},
|
||||
"field.stateFailed": {
|
||||
"message": "Обробка не вдалася",
|
||||
"description": "Документ не вдалося обробити"
|
||||
},
|
||||
"field.name": {
|
||||
"message": "Назва",
|
||||
"description": "Назва документа"
|
||||
},
|
||||
"field.description": {
|
||||
"message": "Опис",
|
||||
"description": "Опис документа"
|
||||
},
|
||||
"message.introductionForKnowledge": {
|
||||
"message": "Документ можна додати до бази знань, і бот може використовувати знання з бази знань під час відповіді.",
|
||||
"description": "Інформація про базу знань"
|
||||
},
|
||||
"message.introductionForRepository": {
|
||||
"message": "База знань є колекцією документів, до якої ви можете додавати документи. Бот відповідатиме, спираючись на документи в базі знань.",
|
||||
"description": "Інформація про базу знань"
|
||||
},
|
||||
"message.uploadDocumentsExceed": {
|
||||
"message": "Кількість завантажених документів перевищує ліміт",
|
||||
"description": "Повідомлення про помилку, коли кількість завантажених документів перевищує ліміт"
|
||||
},
|
||||
"message.uploadDocumentsError": {
|
||||
"message": "Не вдалося завантажити документ",
|
||||
"description": "Повідомлення про помилку при невдалому завантаженні документа"
|
||||
},
|
||||
"message.uploadDocumentsSuccess": {
|
||||
"message": "Документ успішно завантажено",
|
||||
"description": "Повідомлення про успіх при завантаженні документа"
|
||||
},
|
||||
"message.createDocumentSuccess": {
|
||||
"message": "Документ успішно створено",
|
||||
"description": "Повідомлення про успіх при створенні документа"
|
||||
},
|
||||
"message.startCreateDocument": {
|
||||
"message": "Починаю обробку документа...",
|
||||
"description": "Повідомлення під час початку обробки документа"
|
||||
},
|
||||
"message.createDocumentError": {
|
||||
"message": "Не вдалося обробити документ",
|
||||
"description": "Помилка при обробці документа"
|
||||
},
|
||||
"message.dragOrClickToUpload": {
|
||||
"message": "Перетягніть або натисніть, щоб завантажити документ",
|
||||
"description": "Інформація про перетягування або натискання для завантаження документа"
|
||||
},
|
||||
"message.learningDocument": {
|
||||
"message": "Обробка триває, будь ласка, зачекайте...",
|
||||
"description": "Інформація під час обробки документа"
|
||||
},
|
||||
"message.startNewChat": {
|
||||
"message": "Почати нову розмову",
|
||||
"description": "Інформація про початок нової розмови"
|
||||
},
|
||||
"message.errorApiError": {
|
||||
"message": "Помилка відповіді, будь ласка, спробуйте пізніше",
|
||||
"description": "Помилка, коли сталася помилка відповіді"
|
||||
},
|
||||
"message.errorBadRequest": {
|
||||
"message": "Формат запиту неправильний, будь ласка, повторіть запит",
|
||||
"description": "Помилка, коли формат запиту неправильний"
|
||||
},
|
||||
"message.errorNoConversation": {
|
||||
"message": "Вміст розмови не існує або термін її дії закінчився, будь ласка, почніть нову розмову",
|
||||
"description": "Помилка, коли вміст розмови не існує або термін дії закінчився"
|
||||
},
|
||||
"message.errorContentTooLarge": {
|
||||
"message": "Запит занадто довгий, будь ласка, спробуйте його скоротити та повторити",
|
||||
"description": "Помилка, коли запит занадто довгий"
|
||||
},
|
||||
"message.errorTooManyRequests": {
|
||||
"message": "Ваші дії занадто часті, будь ласка, спробуйте пізніше",
|
||||
"description": "Помилка, коли дії занадто часті"
|
||||
},
|
||||
"message.errorUsedUp": {
|
||||
"message": "Ваша кількість використання пакету досягла максимуму, будь ласка, придбайте більше, щоб продовжити",
|
||||
"description": "Помилка, коли кількість використання пакету досягла максимуму"
|
||||
},
|
||||
"message.errorUnknown": {
|
||||
"message": "Виникла невідома помилка сервера, будь ласка, спробуйте пізніше або зв'яжіться зі службою підтримки",
|
||||
"description": "Помилка, коли сталася невідома помилка сервера"
|
||||
},
|
||||
"message.errorTimeout": {
|
||||
"message": "Відповідь на запит перевищила час очікування, будь ласка, спробуйте пізніше",
|
||||
"description": "Помилка, коли відповідь на запит перевищила час очікування"
|
||||
},
|
||||
"message.errorNotApplied": {
|
||||
"message": "Ви ще не подали заявку на цю послугу, будь ласка, подайте заявку, щоб продовжити",
|
||||
"description": "Помилка, коли користувач ще не подав заявку на послугу"
|
||||
},
|
||||
"message.confirmDelete": {
|
||||
"message": "Підтвердити видалення",
|
||||
"description": "Інформація про підтвердження видалення"
|
||||
},
|
||||
"message.howToUse": {
|
||||
"message": "Натисніть Shift+Enter для переносу рядка",
|
||||
"description": "Інформація про те, як переносити рядки"
|
||||
},
|
||||
"message.createRepositorySuccess": {
|
||||
"message": "Базу знань успішно створено",
|
||||
"description": "Повідомлення про успіх при створенні бази знань"
|
||||
},
|
||||
"message.createRepositoryFailed": {
|
||||
"message": "Не вдалося створити базу знань",
|
||||
"description": "Повідомлення про помилку при створенні бази знань"
|
||||
},
|
||||
"message.deleteRepositorySuccess": {
|
||||
"message": "Базу знань успішно видалено",
|
||||
"description": "Повідомлення про успіх при видаленні бази знань"
|
||||
},
|
||||
"message.deleteDocumentSuccess": {
|
||||
"message": "Документ успішно видалено",
|
||||
"description": "Повідомлення про успіх при видаленні документа"
|
||||
},
|
||||
"message.currentRepository": {
|
||||
"message": "Поточна база знань",
|
||||
"description": "Інформація про відображення поточної бази знань"
|
||||
},
|
||||
"message.nameRequired": {
|
||||
"message": "Назва не може бути порожньою",
|
||||
"description": "Помилка, коли назва порожня"
|
||||
},
|
||||
"message.inputRepositoryName": {
|
||||
"message": "Назва бази знань",
|
||||
"description": "Заповнювальний текст для введення назви бази знань"
|
||||
},
|
||||
"message.inputRepositoryDescription": {
|
||||
"message": "Опишіть вашу базу знань в одному реченні",
|
||||
"description": "Заповнювальний текст для опису бази знань"
|
||||
},
|
||||
"message.supportedFiles": {
|
||||
"message": "Підтримувані типи файлів: .docx, .doc, .pdf, .txt, .csv, .enex, .epub, .eml, .html, .htm, .shtml, .md, .odt, .ppt, .pptx",
|
||||
"description": "Інформація про підтримувані типи файлів"
|
||||
},
|
||||
"nav.chat": {
|
||||
"message": "Чат",
|
||||
"description": "Елемент навігації для чату"
|
||||
},
|
||||
"nav.setting": {
|
||||
"message": "Налаштування",
|
||||
"description": "Елемент навігації для налаштувань"
|
||||
},
|
||||
"nav.manage": {
|
||||
"message": "Управління",
|
||||
"description": "Елемент навігації для управління"
|
||||
},
|
||||
"title.manage": {
|
||||
"message": "Управління базою знань",
|
||||
"description": "Заголовок для управління базою знань"
|
||||
},
|
||||
"title.createRepository": {
|
||||
"message": "Створити базу знань",
|
||||
"description": "Заголовок для створення бази знань"
|
||||
},
|
||||
"title.repositories": {
|
||||
"message": "Список баз знань",
|
||||
"description": "Заголовок для списку баз знань"
|
||||
}
|
||||
}
|
||||
@@ -1,198 +0,0 @@
|
||||
{
|
||||
"button.uploadDocuments": {
|
||||
"message": "上传文档",
|
||||
"description": "按钮文本,允许用户上传文档"
|
||||
},
|
||||
"field.fileName": {
|
||||
"message": "文件名",
|
||||
"description": "上传文档的文件名"
|
||||
},
|
||||
"field.createdAt": {
|
||||
"message": "创建时间",
|
||||
"description": "文档上传时间"
|
||||
},
|
||||
"field.fileExtension": {
|
||||
"message": "文件类型",
|
||||
"description": "上传文档的文件类型"
|
||||
},
|
||||
"field.fileUrl": {
|
||||
"message": "文件链接",
|
||||
"description": "上传文档的链接"
|
||||
},
|
||||
"field.fileSize": {
|
||||
"message": "文件大小",
|
||||
"description": "上传文档的大小"
|
||||
},
|
||||
"field.state": {
|
||||
"message": "状态",
|
||||
"description": "文档处理状态"
|
||||
},
|
||||
"field.stateProcessing": {
|
||||
"message": "学习中",
|
||||
"description": "文档正在处理中"
|
||||
},
|
||||
"field.stateCompleted": {
|
||||
"message": "学习完成",
|
||||
"description": "文档处理成功"
|
||||
},
|
||||
"field.stateFailed": {
|
||||
"message": "学习失败",
|
||||
"description": "文档处理失败"
|
||||
},
|
||||
"field.name": {
|
||||
"message": "名称",
|
||||
"description": "文档名称"
|
||||
},
|
||||
"field.description": {
|
||||
"message": "描述",
|
||||
"description": "文档描述"
|
||||
},
|
||||
"message.introductionForKnowledge": {
|
||||
"message": "文档可以添加到知识库中,机器人回复时可以使用知识库中的知识。",
|
||||
"description": "知识库介绍信息"
|
||||
},
|
||||
"message.introductionForRepository": {
|
||||
"message": "知识库是文档的集合,您可以向其中添加文档。机器人回答时将从知识库中的文档中回复。",
|
||||
"description": "知识库介绍信息"
|
||||
},
|
||||
"message.uploadDocumentsExceed": {
|
||||
"message": "上传文档数量超过限制",
|
||||
"description": "上传文档数量超过限制时的错误信息"
|
||||
},
|
||||
"message.uploadDocumentsError": {
|
||||
"message": "上传文档失败",
|
||||
"description": "上传文档失败时的错误信息"
|
||||
},
|
||||
"message.uploadDocumentsSuccess": {
|
||||
"message": "文档上传成功",
|
||||
"description": "文档上传成功时的成功信息"
|
||||
},
|
||||
"message.createDocumentSuccess": {
|
||||
"message": "文档创建成功",
|
||||
"description": "文档创建成功时的成功信息"
|
||||
},
|
||||
"message.startCreateDocument": {
|
||||
"message": "开始学习文档...",
|
||||
"description": "开始学习文档时的信息"
|
||||
},
|
||||
"message.createDocumentError": {
|
||||
"message": "学习文档失败",
|
||||
"description": "学习文档失败时的错误信息"
|
||||
},
|
||||
"message.dragOrClickToUpload": {
|
||||
"message": "拖拽或点击上传文档",
|
||||
"description": "拖拽或点击上传文档的信息"
|
||||
},
|
||||
"message.learningDocument": {
|
||||
"message": "学习中,请稍候...",
|
||||
"description": "学习文档时的信息"
|
||||
},
|
||||
"message.startNewChat": {
|
||||
"message": "开始新对话",
|
||||
"description": "开始新对话的信息"
|
||||
},
|
||||
"message.errorApiError": {
|
||||
"message": "响应失败,请稍后重试",
|
||||
"description": "响应失败时的错误信息"
|
||||
},
|
||||
"message.errorBadRequest": {
|
||||
"message": "请求内容格式不正确,请重新提问",
|
||||
"description": "请求内容格式不正确时的错误信息"
|
||||
},
|
||||
"message.errorNoConversation": {
|
||||
"message": "对话内容不存在或已过期,请开始新对话",
|
||||
"description": "对话内容不存在或已过期时的错误信息"
|
||||
},
|
||||
"message.errorContentTooLarge": {
|
||||
"message": "问题内容过长,请缩短后重试",
|
||||
"description": "问题内容过长时的错误信息"
|
||||
},
|
||||
"message.errorTooManyRequests": {
|
||||
"message": "您的操作过于频繁,请稍后重试",
|
||||
"description": "操作过于频繁时的错误信息"
|
||||
},
|
||||
"message.errorUsedUp": {
|
||||
"message": "您的套餐使用量已达上限,请购买更多使用量以继续",
|
||||
"description": "套餐使用量已达上限时的错误信息"
|
||||
},
|
||||
"message.errorUnknown": {
|
||||
"message": "发生未知服务器错误,请稍后重试或联系客服",
|
||||
"description": "发生未知服务器错误时的错误信息"
|
||||
},
|
||||
"message.errorTimeout": {
|
||||
"message": "回答问题超时,请稍后重试",
|
||||
"description": "回答问题超时时的错误信息"
|
||||
},
|
||||
"message.errorNotApplied": {
|
||||
"message": "您尚未申请此服务,请申请后继续提问",
|
||||
"description": "用户尚未申请此服务时的错误信息"
|
||||
},
|
||||
"message.confirmDelete": {
|
||||
"message": "确认删除",
|
||||
"description": "确认删除的信息"
|
||||
},
|
||||
"message.howToUse": {
|
||||
"message": "按 Shift+Enter 进行换行",
|
||||
"description": "如何换行的信息"
|
||||
},
|
||||
"message.createRepositorySuccess": {
|
||||
"message": "知识库创建成功",
|
||||
"description": "知识库创建成功时的成功信息"
|
||||
},
|
||||
"message.createRepositoryFailed": {
|
||||
"message": "知识库创建失败",
|
||||
"description": "知识库创建失败时的错误信息"
|
||||
},
|
||||
"message.deleteRepositorySuccess": {
|
||||
"message": "知识库删除成功",
|
||||
"description": "知识库删除成功时的成功信息"
|
||||
},
|
||||
"message.deleteDocumentSuccess": {
|
||||
"message": "文档删除成功",
|
||||
"description": "文档删除成功时的成功信息"
|
||||
},
|
||||
"message.currentRepository": {
|
||||
"message": "当前知识库",
|
||||
"description": "显示当前知识库的信息"
|
||||
},
|
||||
"message.nameRequired": {
|
||||
"message": "名称不能为空",
|
||||
"description": "名称为空时的错误信息"
|
||||
},
|
||||
"message.inputRepositoryName": {
|
||||
"message": "知识库名称",
|
||||
"description": "知识库名称的输入占位符"
|
||||
},
|
||||
"message.inputRepositoryDescription": {
|
||||
"message": "用一句话描述您的知识库",
|
||||
"description": "知识库描述的输入占位符"
|
||||
},
|
||||
"message.supportedFiles": {
|
||||
"message": "支持的文件类型:.docx, .doc, .pdf, .txt, .csv, .enex, .epub, .eml, .html, .htm, .shtml, .md, .odt, .ppt, .pptx",
|
||||
"description": "显示支持的文件类型的信息"
|
||||
},
|
||||
"nav.chat": {
|
||||
"message": "聊天",
|
||||
"description": "聊天的导航项"
|
||||
},
|
||||
"nav.setting": {
|
||||
"message": "设置",
|
||||
"description": "设置的导航项"
|
||||
},
|
||||
"nav.manage": {
|
||||
"message": "管理",
|
||||
"description": "管理的导航项"
|
||||
},
|
||||
"title.manage": {
|
||||
"message": "管理知识库",
|
||||
"description": "管理知识库的标题"
|
||||
},
|
||||
"title.createRepository": {
|
||||
"message": "创建知识库",
|
||||
"description": "创建知识库的标题"
|
||||
},
|
||||
"title.repositories": {
|
||||
"message": "知识库列表",
|
||||
"description": "知识库列表的标题"
|
||||
}
|
||||
}
|
||||
@@ -320,10 +320,6 @@
|
||||
"message": "Midjourney",
|
||||
"description": "网站导航栏中的文本,用于显示中途之旅页面,请不要翻译此字段,必须保持为'Midjourney'"
|
||||
},
|
||||
"nav.chatdoc": {
|
||||
"message": "ChatDoc",
|
||||
"description": "网站导航栏中的文本,用于显示聊天文档页面,请不要翻译此字段,必须保持为'Chatdoc'"
|
||||
},
|
||||
"nav.qrart": {
|
||||
"message": "QRArt",
|
||||
"description": "网站导航栏中的文本,用于显示二维艺术页面,请不要翻译此字段,必须保持为'QRArt'"
|
||||
|
||||
@@ -1,198 +0,0 @@
|
||||
{
|
||||
"button.uploadDocuments": {
|
||||
"message": "上傳文檔",
|
||||
"description": "按鈕文本,允許用戶上傳文檔"
|
||||
},
|
||||
"field.fileName": {
|
||||
"message": "文件名稱",
|
||||
"description": "上傳文檔的文件名"
|
||||
},
|
||||
"field.createdAt": {
|
||||
"message": "創建時間",
|
||||
"description": "文檔上傳時間"
|
||||
},
|
||||
"field.fileExtension": {
|
||||
"message": "文件類型",
|
||||
"description": "上傳文檔的文件類型"
|
||||
},
|
||||
"field.fileUrl": {
|
||||
"message": "文件連結",
|
||||
"description": "上傳文檔的鏈接"
|
||||
},
|
||||
"field.fileSize": {
|
||||
"message": "文件大小",
|
||||
"description": "上傳文檔的大小"
|
||||
},
|
||||
"field.state": {
|
||||
"message": "狀態",
|
||||
"description": "文檔處理狀態"
|
||||
},
|
||||
"field.stateProcessing": {
|
||||
"message": "學習中",
|
||||
"description": "文檔正在處理中"
|
||||
},
|
||||
"field.stateCompleted": {
|
||||
"message": "學習完成",
|
||||
"description": "文檔處理成功"
|
||||
},
|
||||
"field.stateFailed": {
|
||||
"message": "學習失敗",
|
||||
"description": "文檔處理失敗"
|
||||
},
|
||||
"field.name": {
|
||||
"message": "名稱",
|
||||
"description": "文檔名稱"
|
||||
},
|
||||
"field.description": {
|
||||
"message": "描述",
|
||||
"description": "文檔描述"
|
||||
},
|
||||
"message.introductionForKnowledge": {
|
||||
"message": "文檔可以添加到知識庫中,機器人回覆時可以使用知識庫中的知識。",
|
||||
"description": "知識庫介紹信息"
|
||||
},
|
||||
"message.introductionForRepository": {
|
||||
"message": "知識庫是文檔的集合,您可以向其中添加文檔。機器人回答時將從知識庫中的文檔中回覆。",
|
||||
"description": "知識庫介紹信息"
|
||||
},
|
||||
"message.uploadDocumentsExceed": {
|
||||
"message": "上傳文檔數量超過限制",
|
||||
"description": "上傳文檔數量超過限制時的錯誤信息"
|
||||
},
|
||||
"message.uploadDocumentsError": {
|
||||
"message": "上傳文檔失敗",
|
||||
"description": "上傳文檔失敗時的錯誤信息"
|
||||
},
|
||||
"message.uploadDocumentsSuccess": {
|
||||
"message": "文檔上傳成功",
|
||||
"description": "文檔上傳成功時的成功信息"
|
||||
},
|
||||
"message.createDocumentSuccess": {
|
||||
"message": "文檔創建成功",
|
||||
"description": "文檔創建成功時的成功信息"
|
||||
},
|
||||
"message.startCreateDocument": {
|
||||
"message": "開始學習文檔...",
|
||||
"description": "開始學習文檔時的信息"
|
||||
},
|
||||
"message.createDocumentError": {
|
||||
"message": "學習文檔失敗",
|
||||
"description": "學習文檔失敗時的錯誤信息"
|
||||
},
|
||||
"message.dragOrClickToUpload": {
|
||||
"message": "拖曳或點擊上傳文檔",
|
||||
"description": "拖曳或點擊上傳文檔的信息"
|
||||
},
|
||||
"message.learningDocument": {
|
||||
"message": "學習中,請稍候...",
|
||||
"description": "學習文檔時的信息"
|
||||
},
|
||||
"message.startNewChat": {
|
||||
"message": "開始新對話",
|
||||
"description": "開始新對話的信息"
|
||||
},
|
||||
"message.errorApiError": {
|
||||
"message": "響應失敗,請稍後重試",
|
||||
"description": "響應失敗時的錯誤信息"
|
||||
},
|
||||
"message.errorBadRequest": {
|
||||
"message": "請求內容格式不正確,請重新提問",
|
||||
"description": "請求內容格式不正確時的錯誤信息"
|
||||
},
|
||||
"message.errorNoConversation": {
|
||||
"message": "對話內容不存在或已過期,請開始新對話",
|
||||
"description": "對話內容不存在或已過期時的錯誤信息"
|
||||
},
|
||||
"message.errorContentTooLarge": {
|
||||
"message": "問題內容過長,請縮短後重試",
|
||||
"description": "問題內容過長時的錯誤信息"
|
||||
},
|
||||
"message.errorTooManyRequests": {
|
||||
"message": "您的操作過於頻繁,請稍後重試",
|
||||
"description": "操作過於頻繁時的錯誤信息"
|
||||
},
|
||||
"message.errorUsedUp": {
|
||||
"message": "您的套餐使用量已達上限,請購買更多使用量以繼續",
|
||||
"description": "套餐使用量已達上限時的錯誤信息"
|
||||
},
|
||||
"message.errorUnknown": {
|
||||
"message": "發生未知伺服器錯誤,請稍後重試或聯繫客服",
|
||||
"description": "發生未知伺服器錯誤時的錯誤信息"
|
||||
},
|
||||
"message.errorTimeout": {
|
||||
"message": "回答問題超時,請稍後重試",
|
||||
"description": "回答問題超時時的錯誤信息"
|
||||
},
|
||||
"message.errorNotApplied": {
|
||||
"message": "您尚未申請此服務,請申請後繼續提問",
|
||||
"description": "用戶尚未申請此服務時的錯誤信息"
|
||||
},
|
||||
"message.confirmDelete": {
|
||||
"message": "確認刪除",
|
||||
"description": "確認刪除的信息"
|
||||
},
|
||||
"message.howToUse": {
|
||||
"message": "按 Shift+Enter 進行換行",
|
||||
"description": "如何換行的信息"
|
||||
},
|
||||
"message.createRepositorySuccess": {
|
||||
"message": "知識庫創建成功",
|
||||
"description": "知識庫創建成功時的成功信息"
|
||||
},
|
||||
"message.createRepositoryFailed": {
|
||||
"message": "知識庫創建失敗",
|
||||
"description": "知識庫創建失敗時的錯誤信息"
|
||||
},
|
||||
"message.deleteRepositorySuccess": {
|
||||
"message": "知識庫刪除成功",
|
||||
"description": "知識庫刪除成功時的成功信息"
|
||||
},
|
||||
"message.deleteDocumentSuccess": {
|
||||
"message": "文檔刪除成功",
|
||||
"description": "文檔刪除成功時的成功信息"
|
||||
},
|
||||
"message.currentRepository": {
|
||||
"message": "當前知識庫",
|
||||
"description": "顯示當前知識庫的信息"
|
||||
},
|
||||
"message.nameRequired": {
|
||||
"message": "名稱不能為空",
|
||||
"description": "名稱為空時的錯誤信息"
|
||||
},
|
||||
"message.inputRepositoryName": {
|
||||
"message": "知識庫名稱",
|
||||
"description": "知識庫名稱的輸入佔位符"
|
||||
},
|
||||
"message.inputRepositoryDescription": {
|
||||
"message": "用一句話描述您的知識庫",
|
||||
"description": "知識庫描述的輸入佔位符"
|
||||
},
|
||||
"message.supportedFiles": {
|
||||
"message": "支持的文件類型:.docx, .doc, .pdf, .txt, .csv, .enex, .epub, .eml, .html, .htm, .shtml, .md, .odt, .ppt, .pptx",
|
||||
"description": "顯示支持的文件類型的信息"
|
||||
},
|
||||
"nav.chat": {
|
||||
"message": "聊天",
|
||||
"description": "聊天的導航項"
|
||||
},
|
||||
"nav.setting": {
|
||||
"message": "設定",
|
||||
"description": "設定的導航項"
|
||||
},
|
||||
"nav.manage": {
|
||||
"message": "管理",
|
||||
"description": "管理的導航項"
|
||||
},
|
||||
"title.manage": {
|
||||
"message": "管理知識庫",
|
||||
"description": "管理知識庫的標題"
|
||||
},
|
||||
"title.createRepository": {
|
||||
"message": "創建知識庫",
|
||||
"description": "創建知識庫的標題"
|
||||
},
|
||||
"title.repositories": {
|
||||
"message": "知識庫列表",
|
||||
"description": "知識庫列表的標題"
|
||||
}
|
||||
}
|
||||
@@ -1,150 +0,0 @@
|
||||
<template>
|
||||
<div class="main">
|
||||
<el-menu v-if="repositoryId" :default-active="activeMenu" mode="horizontal" :ellipsis="false" class="menu">
|
||||
<div class="repository">
|
||||
<font-awesome-icon class="mr-2" :icon="['fas', 'book']" />
|
||||
<span>{{ repository?.name }}</span>
|
||||
</div>
|
||||
<el-menu-item
|
||||
v-for="(menuItem, menuItemIndex) in menuItems"
|
||||
:key="menuItemIndex"
|
||||
:index="menuItem.index"
|
||||
@click="onClickMenu(menuItem)"
|
||||
>
|
||||
{{ menuItem.title }}
|
||||
</el-menu-item>
|
||||
</el-menu>
|
||||
<div class="chatdoc">
|
||||
<slot name="chatdoc" />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { defineComponent } from 'vue';
|
||||
import { ElMenu, ElMenuItem } from 'element-plus';
|
||||
import { ROUTE_CHATDOC_CONVERSATION_NEW, ROUTE_CHATDOC_MANAGE } from '@/router';
|
||||
import { RouteLocationRaw } from 'vue-router';
|
||||
import { IChatdocRepository } from '@/models';
|
||||
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
|
||||
|
||||
interface IMenuItem {
|
||||
index: string;
|
||||
title: string;
|
||||
route?: RouteLocationRaw;
|
||||
}
|
||||
|
||||
interface IData {
|
||||
repositoryId: string;
|
||||
drawer: boolean;
|
||||
menuItems: IMenuItem[];
|
||||
}
|
||||
|
||||
export default defineComponent({
|
||||
name: 'LayoutChatdoc',
|
||||
components: {
|
||||
ElMenu,
|
||||
ElMenuItem,
|
||||
FontAwesomeIcon
|
||||
},
|
||||
data(): IData {
|
||||
return {
|
||||
repositoryId: this.$route.params?.repositoryId?.toString(),
|
||||
drawer: false,
|
||||
menuItems: [
|
||||
{
|
||||
index: 'chat',
|
||||
title: this.$t('chatdoc.nav.chat'),
|
||||
route: {
|
||||
name: ROUTE_CHATDOC_CONVERSATION_NEW
|
||||
}
|
||||
},
|
||||
/*
|
||||
{
|
||||
index: 'setting',
|
||||
title: this.$t('chatdoc.nav.setting'),
|
||||
route: {
|
||||
name: ROUTE_CHATDOC_SETTING
|
||||
}
|
||||
},
|
||||
*/
|
||||
{
|
||||
index: 'manage',
|
||||
title: this.$t('chatdoc.nav.manage'),
|
||||
route: {
|
||||
name: ROUTE_CHATDOC_MANAGE
|
||||
}
|
||||
}
|
||||
]
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
activeMenu() {
|
||||
// @ts-ignore
|
||||
const filterResult = this.menuItems.filter((menuItem) => menuItem.route?.name === this.$route.name);
|
||||
if (filterResult) {
|
||||
return filterResult[0]?.index;
|
||||
}
|
||||
return undefined;
|
||||
},
|
||||
repository(): IChatdocRepository | undefined {
|
||||
return this.$store.state?.chatdoc?.repositories?.find((repository) => repository.id === this.repositoryId);
|
||||
}
|
||||
},
|
||||
async mounted() {
|
||||
await this.getService();
|
||||
await this.onGetApplications();
|
||||
await this.onGetRepositories();
|
||||
},
|
||||
methods: {
|
||||
async getService() {
|
||||
await this.$store.dispatch('chatdoc/getService');
|
||||
},
|
||||
async onGetApplications() {
|
||||
await this.$store.dispatch('chatdoc/getApplications');
|
||||
},
|
||||
async onGetRepositories() {
|
||||
await this.$store.dispatch('chatdoc/getRepositories');
|
||||
},
|
||||
async onClickMenu(menuItem: IMenuItem) {
|
||||
this.activeMenu = menuItem.index;
|
||||
if (menuItem.route) {
|
||||
await this.$router.push({
|
||||
// @ts-ignore
|
||||
...menuItem.route,
|
||||
params: {
|
||||
id: this.repositoryId
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.main {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
position: relative;
|
||||
height: 100%;
|
||||
|
||||
.repository {
|
||||
position: absolute;
|
||||
left: 50px;
|
||||
top: 20px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.menu {
|
||||
width: 100%;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.chatdoc {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -1,87 +0,0 @@
|
||||
import { ACTION_CREATE, ACTION_DELETE, ACTION_UPDATE, ROLE_ASSISTANT, ROLE_SYSTEM, ROLE_USER } from '@/constants';
|
||||
|
||||
export interface IError {
|
||||
code: string;
|
||||
detail?: string;
|
||||
}
|
||||
|
||||
export interface IChatdocRepository {
|
||||
id: string;
|
||||
name?: string;
|
||||
description?: string;
|
||||
deleting?: boolean;
|
||||
editing?: boolean;
|
||||
documents?: IChatdocDocument[];
|
||||
conversations?: IChatdocConversation[];
|
||||
}
|
||||
|
||||
export interface IChatdocRepositoryRequest extends IChatdocRepository {
|
||||
action: typeof ACTION_CREATE | typeof ACTION_UPDATE | typeof ACTION_DELETE;
|
||||
}
|
||||
|
||||
export interface IChatdocRepositoryResponse extends IChatdocRepository {}
|
||||
export type IChatdocRepositoriesResponse = {
|
||||
items: IChatdocRepository[];
|
||||
count: number;
|
||||
};
|
||||
|
||||
export interface IChatdocDocument {
|
||||
id: string;
|
||||
repository_id: string;
|
||||
file_url: string;
|
||||
file_name: string;
|
||||
}
|
||||
|
||||
export interface IChatdocDocumentRequest extends IChatdocDocument {
|
||||
action: typeof ACTION_CREATE | typeof ACTION_UPDATE | typeof ACTION_DELETE;
|
||||
callback_url?: string;
|
||||
}
|
||||
|
||||
export interface IChatdocDocumentResponse extends IChatdocDocument {}
|
||||
|
||||
export type IChatdocDocumentsResponse = {
|
||||
items: IChatdocDocument[];
|
||||
count: number;
|
||||
};
|
||||
|
||||
export interface IChatdocConversation {
|
||||
id: string;
|
||||
repository_id: string;
|
||||
messages: IChatdocMessage[];
|
||||
question: string;
|
||||
editing?: boolean;
|
||||
deleting?: boolean;
|
||||
}
|
||||
|
||||
export interface IChatdocMessage {
|
||||
content?: string;
|
||||
error?: IError;
|
||||
state?: IChatdocMessageState;
|
||||
role?: typeof ROLE_SYSTEM | typeof ROLE_ASSISTANT | typeof ROLE_USER;
|
||||
}
|
||||
|
||||
export enum IChatdocMessageState {
|
||||
PENDING = 'pending',
|
||||
ANSWERING = 'answering',
|
||||
FINISHED = 'finished',
|
||||
FAILED = 'failed'
|
||||
}
|
||||
|
||||
export interface IChatdocConversationRequest {
|
||||
id: string;
|
||||
repository_id: string;
|
||||
question: string;
|
||||
temperature?: number;
|
||||
knowledge_fallback?: boolean;
|
||||
}
|
||||
|
||||
export type IChatdocConversationsResponse = {
|
||||
items: IChatdocConversation[];
|
||||
count: number;
|
||||
};
|
||||
|
||||
export interface IChatdocConversationResponse {
|
||||
id: string;
|
||||
answer: string;
|
||||
delta_answer?: string;
|
||||
}
|
||||
@@ -3,7 +3,6 @@ export * from './api';
|
||||
export * from './application';
|
||||
export * from './auth';
|
||||
export * from './chat';
|
||||
export * from './chatdoc';
|
||||
export * from './distribution';
|
||||
export * from './midjourney';
|
||||
export * from './order';
|
||||
|
||||
@@ -3,7 +3,6 @@ export interface ISiteFeatures {
|
||||
deepseek?: any;
|
||||
grok?: any;
|
||||
midjourney?: any;
|
||||
chatdoc?: any;
|
||||
flux?: any;
|
||||
qrart?: any;
|
||||
luma?: any;
|
||||
|
||||
@@ -1,328 +0,0 @@
|
||||
import axios, { AxiosProgressEvent, AxiosResponse } from 'axios';
|
||||
import {
|
||||
IChatdocConversation,
|
||||
IChatdocConversationResponse,
|
||||
IChatdocConversationsResponse,
|
||||
IChatdocDocumentResponse,
|
||||
IChatdocDocumentsResponse,
|
||||
IChatdocRepositoriesResponse,
|
||||
IChatdocRepositoryResponse
|
||||
} from '@/models';
|
||||
import { ACTION_UPDATE, BASE_URL_API } from '@/constants';
|
||||
import { ACTION_CREATE, ACTION_DELETE, ACTION_RETRIEVE, ACTION_RETRIEVE_BATCH } from '@/constants';
|
||||
|
||||
class ChatdocOperator {
|
||||
async createRepository(
|
||||
payload: {
|
||||
name: string;
|
||||
description?: string;
|
||||
},
|
||||
options: { token: string }
|
||||
): Promise<AxiosResponse<IChatdocRepositoryResponse>> {
|
||||
return await axios.post(
|
||||
`/chatdoc/repositories`,
|
||||
{
|
||||
action: ACTION_CREATE,
|
||||
name: payload.name,
|
||||
description: payload.description
|
||||
},
|
||||
{
|
||||
headers: {
|
||||
authorization: `Bearer ${options.token}`,
|
||||
accept: 'application/json',
|
||||
'content-type': 'application/json',
|
||||
'x-record-exempt': 'true'
|
||||
},
|
||||
baseURL: BASE_URL_API
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
async deleteRepository(id: string, options: { token: string }): Promise<AxiosResponse<IChatdocRepositoryResponse>> {
|
||||
return await axios.post(
|
||||
`/chatdoc/repositories`,
|
||||
{
|
||||
action: ACTION_DELETE,
|
||||
id
|
||||
},
|
||||
{
|
||||
headers: {
|
||||
authorization: `Bearer ${options.token}`,
|
||||
accept: 'application/json',
|
||||
'content-type': 'application/json',
|
||||
'x-record-exempt': 'true'
|
||||
},
|
||||
baseURL: BASE_URL_API
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
async getRepository(id: string, options: { token: string }): Promise<AxiosResponse<IChatdocRepositoryResponse>> {
|
||||
return await axios.post(
|
||||
`/chatdoc/repositories`,
|
||||
{
|
||||
action: ACTION_RETRIEVE,
|
||||
id
|
||||
},
|
||||
{
|
||||
headers: {
|
||||
authorization: `Bearer ${options.token}`,
|
||||
accept: 'application/json',
|
||||
'content-type': 'application/json',
|
||||
'x-record-exempt': 'true'
|
||||
},
|
||||
baseURL: BASE_URL_API
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
async getAllRepositories(options: { token: string }): Promise<AxiosResponse<IChatdocRepositoriesResponse>> {
|
||||
return await axios.post(
|
||||
`/chatdoc/repositories`,
|
||||
{
|
||||
action: ACTION_RETRIEVE_BATCH
|
||||
},
|
||||
{
|
||||
headers: {
|
||||
authorization: `Bearer ${options.token}`,
|
||||
accept: 'application/json',
|
||||
'content-type': 'application/json',
|
||||
'x-record-exempt': 'true'
|
||||
},
|
||||
baseURL: BASE_URL_API
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
async getAllDocuments(
|
||||
repositoryId: string,
|
||||
options: { token: string }
|
||||
): Promise<AxiosResponse<IChatdocDocumentsResponse>> {
|
||||
return await axios.post(
|
||||
`/chatdoc/documents`,
|
||||
{
|
||||
action: ACTION_RETRIEVE_BATCH,
|
||||
repository_id: repositoryId
|
||||
},
|
||||
{
|
||||
headers: {
|
||||
authorization: `Bearer ${options.token}`,
|
||||
accept: 'application/json',
|
||||
'content-type': 'application/json',
|
||||
'x-record-exempt': 'true'
|
||||
},
|
||||
baseURL: BASE_URL_API
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
async getAllConversations(
|
||||
repositoryId: string,
|
||||
options: { token: string }
|
||||
): Promise<AxiosResponse<IChatdocConversationsResponse>> {
|
||||
return await axios.post(
|
||||
`/chatdoc/conversations`,
|
||||
{
|
||||
action: ACTION_RETRIEVE_BATCH,
|
||||
repository_id: repositoryId
|
||||
},
|
||||
{
|
||||
headers: {
|
||||
authorization: `Bearer ${options.token}`,
|
||||
accept: 'application/json',
|
||||
'content-type': 'application/json',
|
||||
'x-record-exempt': 'true'
|
||||
},
|
||||
baseURL: BASE_URL_API
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
async getRepositories(filter: {
|
||||
ids?: string[];
|
||||
applicationId?: string;
|
||||
}): Promise<AxiosResponse<IChatdocRepositoriesResponse>> {
|
||||
return await axios.post(
|
||||
`/chatdoc/repositories`,
|
||||
{
|
||||
action: ACTION_RETRIEVE_BATCH,
|
||||
...(filter.ids
|
||||
? {
|
||||
ids: filter.ids
|
||||
}
|
||||
: {}),
|
||||
...(filter.applicationId
|
||||
? {
|
||||
application_id: filter.applicationId
|
||||
}
|
||||
: {})
|
||||
},
|
||||
{
|
||||
headers: {
|
||||
accept: 'application/json',
|
||||
'content-type': 'application/json',
|
||||
'x-record-exempt': 'true'
|
||||
},
|
||||
baseURL: BASE_URL_API
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
async createDocument(
|
||||
payload: {
|
||||
repositoryId: string;
|
||||
fileUrl: string;
|
||||
fileName: string;
|
||||
},
|
||||
options: { token: string }
|
||||
): Promise<AxiosResponse<IChatdocDocumentResponse>> {
|
||||
return await axios.post(
|
||||
`/chatdoc/documents`,
|
||||
{
|
||||
action: ACTION_CREATE,
|
||||
repository_id: payload.repositoryId,
|
||||
file_url: payload.fileUrl,
|
||||
file_name: payload.fileName
|
||||
},
|
||||
{
|
||||
headers: {
|
||||
authorization: `Bearer ${options.token}`,
|
||||
accept: 'application/json',
|
||||
'content-type': 'application/json'
|
||||
},
|
||||
baseURL: BASE_URL_API
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
async retrieveDocument(id: string, options: { token: string }): Promise<AxiosResponse<IChatdocDocumentResponse>> {
|
||||
return await axios.post(
|
||||
`/chatdoc/documents`,
|
||||
{
|
||||
action: ACTION_RETRIEVE,
|
||||
id
|
||||
},
|
||||
{
|
||||
headers: {
|
||||
authorization: `Bearer ${options.token}`,
|
||||
accept: 'application/json',
|
||||
'content-type': 'application/json',
|
||||
'x-record-exempt': 'true'
|
||||
},
|
||||
baseURL: BASE_URL_API
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
async retrieveConversation(id: string, options: { token: string }): Promise<AxiosResponse<IChatdocDocumentResponse>> {
|
||||
return await axios.post(
|
||||
`/chatdoc/conversations`,
|
||||
{
|
||||
action: ACTION_RETRIEVE,
|
||||
id
|
||||
},
|
||||
{
|
||||
headers: {
|
||||
authorization: `Bearer ${options.token}`,
|
||||
accept: 'application/json',
|
||||
'content-type': 'application/json',
|
||||
'x-record-exempt': 'true'
|
||||
},
|
||||
baseURL: BASE_URL_API
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
async deleteDocument(id: string, options: { token: string }): Promise<AxiosResponse<IChatdocDocumentResponse>> {
|
||||
return await axios.post(
|
||||
`/chatdoc/documents`,
|
||||
{
|
||||
action: ACTION_DELETE,
|
||||
id
|
||||
},
|
||||
{
|
||||
headers: {
|
||||
authorization: `Bearer ${options.token}`,
|
||||
accept: 'application/json',
|
||||
'content-type': 'application/json',
|
||||
'x-record-exempt': 'true'
|
||||
},
|
||||
baseURL: BASE_URL_API
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
async updateConversation(payload: IChatdocConversation) {
|
||||
return await axios.post(
|
||||
`/chatdoc/conversations`,
|
||||
{
|
||||
action: ACTION_UPDATE,
|
||||
id: payload.id,
|
||||
messages: payload.messages
|
||||
},
|
||||
{
|
||||
headers: {
|
||||
accept: 'application/json',
|
||||
'content-type': 'application/json',
|
||||
'x-record-exempt': 'true'
|
||||
},
|
||||
baseURL: BASE_URL_API
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
async deleteConversation(id: string): Promise<AxiosResponse<IChatdocDocumentResponse>> {
|
||||
return await axios.post(
|
||||
`/chatdoc/conversations`,
|
||||
{
|
||||
action: ACTION_DELETE,
|
||||
id
|
||||
},
|
||||
{
|
||||
headers: {
|
||||
accept: 'application/json',
|
||||
'content-type': 'application/json',
|
||||
'x-record-exempt': 'true'
|
||||
},
|
||||
baseURL: BASE_URL_API
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
async chatConversation(
|
||||
payload: { repositoryId: string; question: string; id?: string; knowledgeFallback?: boolean },
|
||||
options: { token: string; stream: (response: IChatdocConversationResponse) => void }
|
||||
): Promise<AxiosResponse<IChatdocConversationResponse>> {
|
||||
return await axios.post(
|
||||
`/chatdoc/conversations`,
|
||||
{
|
||||
repository_id: payload.repositoryId,
|
||||
question: payload.question,
|
||||
id: payload.id,
|
||||
stateful: true
|
||||
},
|
||||
{
|
||||
headers: {
|
||||
authorization: `Bearer ${options.token}`,
|
||||
accept: 'application/x-ndjson',
|
||||
'content-type': 'application/json'
|
||||
},
|
||||
baseURL: BASE_URL_API,
|
||||
responseType: 'stream',
|
||||
onDownloadProgress: ({ event }: AxiosProgressEvent) => {
|
||||
const response = event.target.response;
|
||||
const lines = response.split('\r\n').filter((line: string) => !!line);
|
||||
const lastLine = lines[lines.length - 1];
|
||||
if (lastLine) {
|
||||
const jsonData = JSON.parse(lastLine);
|
||||
if (options?.stream) {
|
||||
options?.stream(jsonData as IChatdocConversationResponse);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
export const chatdocOperator = new ChatdocOperator();
|
||||
@@ -7,7 +7,6 @@ export * from './usage';
|
||||
export * from './api';
|
||||
export * from './order';
|
||||
export * from './distribution';
|
||||
export * from './chatdoc';
|
||||
export * from './auth';
|
||||
export * from './service';
|
||||
export * from './credential';
|
||||
|
||||
@@ -305,10 +305,7 @@ export default defineComponent({
|
||||
},
|
||||
async onRestoreConversation(id: string) {
|
||||
console.debug('onRestoreConversation id', id);
|
||||
console.debug('onRestoreConversation route', this.$route);
|
||||
const newRoute = this.$router.resolve({ path: this.$route.path, params: { id } });
|
||||
console.debug('onRestoreConversation newRoute', newRoute);
|
||||
this.$router.push(newRoute);
|
||||
this.$router.push({ ...this.$route, params: { id } });
|
||||
const conversation = this.conversations?.find((conversation: IChatConversation) => conversation.id === id);
|
||||
// change the model and model group
|
||||
const model = conversation?.model;
|
||||
@@ -324,6 +321,9 @@ export default defineComponent({
|
||||
},
|
||||
async onChangeConversation(id?: string) {
|
||||
console.log('onChangeConversation in conversation', id);
|
||||
// stop the current request
|
||||
await this.onStop();
|
||||
// if id is undefined, create a new conversation
|
||||
if (!id) {
|
||||
this.onNewConversation();
|
||||
} else {
|
||||
|
||||
@@ -1,277 +0,0 @@
|
||||
<template>
|
||||
<layout>
|
||||
<template #chatdoc>
|
||||
<div class="wrapper">
|
||||
<conversations class="side" />
|
||||
<div class="chat">
|
||||
<div class="status">
|
||||
<application-status
|
||||
:show-price="false"
|
||||
:initializing="initializing"
|
||||
:application="application"
|
||||
:need-apply="needApply"
|
||||
:service="service"
|
||||
@refresh="$store.dispatch('chatdoc/getApplications')"
|
||||
/>
|
||||
</div>
|
||||
<div class="dialogue">
|
||||
<div class="messages">
|
||||
<message
|
||||
v-for="(message, messageIndex) in messages"
|
||||
:key="messageIndex"
|
||||
:message="message"
|
||||
class="message"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="bottom">
|
||||
<input-box
|
||||
:disabled="answering"
|
||||
:question="question"
|
||||
@update:question="question = $event"
|
||||
@submit="onSubmit"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
</layout>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { defineComponent } from 'vue';
|
||||
import Layout from '@/layouts/Chatdoc.vue';
|
||||
import { chatdocOperator } from '@/operators';
|
||||
import Conversations from '@/components/chatdoc/Conversations.vue';
|
||||
import Message from '@/components/chatdoc/Message.vue';
|
||||
import InputBox from '@/components/chatdoc/InputBox.vue';
|
||||
import {
|
||||
ERROR_CODE_CANCELED,
|
||||
ERROR_CODE_NOT_APPLIED,
|
||||
ERROR_CODE_UNKNOWN,
|
||||
ROLE_ASSISTANT,
|
||||
ROLE_USER
|
||||
} from '@/constants';
|
||||
import { ROUTE_CHATDOC_CONVERSATION } from '@/router';
|
||||
import axios from 'axios';
|
||||
import { isJSONString } from '@/utils/is';
|
||||
import { IService, Status } from '@/models';
|
||||
import ApplicationStatus from '@/components/application/Status.vue';
|
||||
import { IChatdocConversationResponse, IChatdocConversation, IChatdocMessageState, IChatdocRepository } from '@/models';
|
||||
|
||||
export default defineComponent({
|
||||
name: 'ChatdocConversation',
|
||||
components: {
|
||||
Layout,
|
||||
Conversations,
|
||||
Message,
|
||||
InputBox,
|
||||
ApplicationStatus
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
loading: false,
|
||||
repositoryId: this.$route.params.repositoryId.toString(),
|
||||
answering: false,
|
||||
question: ''
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
messages: {
|
||||
get() {
|
||||
return (
|
||||
this.conversations?.find(
|
||||
(conversation: IChatdocConversation) => conversation.id === this.$route.params.conversationId?.toString()
|
||||
)?.messages || []
|
||||
);
|
||||
},
|
||||
set(messages: any[]) {
|
||||
console.debug('set messages', messages);
|
||||
}
|
||||
},
|
||||
repository(): IChatdocRepository | undefined {
|
||||
return this.$store.state?.chatdoc?.repositories?.find((repository) => repository.id === this.repositoryId);
|
||||
},
|
||||
conversations(): IChatdocConversation[] | undefined {
|
||||
return this.repository?.conversations;
|
||||
},
|
||||
conversationId(): string | undefined {
|
||||
return this.$route.params.conversationId?.toString();
|
||||
},
|
||||
application() {
|
||||
return this.$store.state.chatdoc.application;
|
||||
},
|
||||
credential() {
|
||||
return this.$store.state.chatdoc.credential;
|
||||
},
|
||||
needApply() {
|
||||
return this.$store.state.chatdoc.status.getApplications === Status.Success && !this.application;
|
||||
},
|
||||
initializing() {
|
||||
return this.$store.state.chatdoc.status.getApplications === Status.Request;
|
||||
},
|
||||
service(): IService | undefined {
|
||||
return this.$store.state.chatdoc.service;
|
||||
}
|
||||
},
|
||||
async mounted() {
|
||||
console.debug('start get conversations');
|
||||
this.loading = true;
|
||||
this.$store.dispatch('chatdoc/getConversations', { repositoryId: this.repositoryId }).finally(() => {
|
||||
this.loading = false;
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
async onSubmit() {
|
||||
this.messages.push({
|
||||
content: this.question,
|
||||
role: ROLE_USER
|
||||
});
|
||||
await this.onFetchAnswer();
|
||||
},
|
||||
async onScrollDown() {
|
||||
setTimeout(() => {
|
||||
const container = document.querySelector('.dialogue') as HTMLDivElement;
|
||||
if (!container || !this.messages || this.messages.length === 0) {
|
||||
return;
|
||||
}
|
||||
container.scrollTop = container?.scrollHeight;
|
||||
}, 0);
|
||||
},
|
||||
async onFetchAnswer() {
|
||||
const token = this.credential?.token;
|
||||
const question = this.question;
|
||||
console.debug(this.onFetchAnswer, 'validated', question);
|
||||
// reset question and references
|
||||
this.question = '';
|
||||
if (!token || !question) {
|
||||
console.error('no token or endpoint or question');
|
||||
this.messages.push({
|
||||
error: {
|
||||
code: ERROR_CODE_NOT_APPLIED
|
||||
},
|
||||
role: ROLE_ASSISTANT,
|
||||
state: IChatdocMessageState.FAILED
|
||||
});
|
||||
return;
|
||||
}
|
||||
let conversationId = this.conversationId;
|
||||
this.messages.push({
|
||||
content: '',
|
||||
role: ROLE_ASSISTANT,
|
||||
state: IChatdocMessageState.PENDING
|
||||
});
|
||||
console.debug('start to get answer', this.messages);
|
||||
this.onScrollDown();
|
||||
// request server to get answer
|
||||
this.answering = true;
|
||||
chatdocOperator
|
||||
.chatConversation(
|
||||
{
|
||||
repositoryId: this.repositoryId,
|
||||
question,
|
||||
id: this.conversationId
|
||||
},
|
||||
{
|
||||
token,
|
||||
stream: (response: IChatdocConversationResponse) => {
|
||||
this.messages[this.messages.length - 1] = {
|
||||
role: ROLE_ASSISTANT,
|
||||
content: response.answer,
|
||||
state: IChatdocMessageState.ANSWERING
|
||||
};
|
||||
conversationId = response.id;
|
||||
this.onScrollDown();
|
||||
}
|
||||
}
|
||||
)
|
||||
.then(async () => {
|
||||
console.debug('finished fetch answer');
|
||||
this.messages[this.messages.length - 1].state = IChatdocMessageState.FINISHED;
|
||||
await this.$store.dispatch('chatdoc/setConversation', {
|
||||
id: conversationId,
|
||||
messages: this.messages,
|
||||
repositoryId: this.repositoryId
|
||||
});
|
||||
this.answering = false;
|
||||
if (!this.conversationId) {
|
||||
console.debug('push to conversation', conversationId);
|
||||
await this.$router.push({
|
||||
name: ROUTE_CHATDOC_CONVERSATION,
|
||||
params: {
|
||||
conversationId: conversationId,
|
||||
repositoryId: this.repositoryId
|
||||
}
|
||||
});
|
||||
}
|
||||
this.onScrollDown();
|
||||
await this.$store.dispatch('chatdoc/getConversations', { repositoryId: this.repositoryId });
|
||||
})
|
||||
.catch((error) => {
|
||||
if (this.messages && this.messages.length > 0) {
|
||||
this.messages[this.messages.length - 1].state = IChatdocMessageState.FAILED;
|
||||
}
|
||||
console.error(error);
|
||||
if (axios.isCancel(error)) {
|
||||
this.messages[this.messages.length - 1].error = {
|
||||
code: ERROR_CODE_CANCELED
|
||||
};
|
||||
} else if (error?.response?.data) {
|
||||
let data = error?.response?.data;
|
||||
if (isJSONString(data)) {
|
||||
data = JSON.parse(data);
|
||||
}
|
||||
if (this.messages && this.messages.length > 0) {
|
||||
this.messages[this.messages.length - 1].error = data.error;
|
||||
}
|
||||
} else {
|
||||
if (this.messages && this.messages.length > 0) {
|
||||
this.messages[this.messages.length - 1].error = {
|
||||
code: ERROR_CODE_UNKNOWN
|
||||
};
|
||||
}
|
||||
}
|
||||
this.answering = false;
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.wrapper {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
}
|
||||
.chat {
|
||||
flex: 1;
|
||||
width: calc(100% - 300px);
|
||||
padding: 15px;
|
||||
flex-direction: column;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
|
||||
.status {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.dialogue {
|
||||
flex: 1;
|
||||
overflow-y: scroll;
|
||||
margin: 15px 0;
|
||||
position: relative;
|
||||
.messages {
|
||||
.message {
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
}
|
||||
}
|
||||
.bottom {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -1,195 +0,0 @@
|
||||
<template>
|
||||
<layout>
|
||||
<template #chatdoc>
|
||||
<div class="wrapper">
|
||||
<div class="title">
|
||||
{{ $t('chatdoc.title.repositories') }}
|
||||
</div>
|
||||
<div class="introduction">
|
||||
{{ $t('chatdoc.message.introductionForRepository') }}
|
||||
</div>
|
||||
<div class="status">
|
||||
<application-status
|
||||
:show-price="false"
|
||||
:initializing="initializing"
|
||||
:application="application"
|
||||
:need-apply="needApply"
|
||||
:service="service"
|
||||
@refresh="$store.dispatch('chatdoc/getApplications')"
|
||||
/>
|
||||
</div>
|
||||
<el-row class="repositories" :gutter="15">
|
||||
<el-col :xl="4" :md="6" :sm="12" :xs="24">
|
||||
<el-card class="repository text-center" shadow="hover" @click="onCreate">
|
||||
<create-repository />
|
||||
<p class="operation">{{ $t('chatdoc.title.createRepository') }}</p>
|
||||
</el-card>
|
||||
</el-col>
|
||||
<el-col
|
||||
v-for="(repository, repositoryIndex) in repositories"
|
||||
:key="repositoryIndex"
|
||||
:xl="4"
|
||||
:md="6"
|
||||
:sm="12"
|
||||
:xs="24"
|
||||
>
|
||||
<el-card class="repository" shadow="hover" @click="onClick(repository)">
|
||||
<el-dropdown v-if="false">
|
||||
<font-awesome-icon class="more" :icon="['fas', 'book']" />
|
||||
<template #dropdown>
|
||||
<el-dropdown-menu>
|
||||
<el-dropdown-item @click="onDelete(repository.id)">{{
|
||||
$t('common.button.delete')
|
||||
}}</el-dropdown-item>
|
||||
</el-dropdown-menu>
|
||||
</template>
|
||||
</el-dropdown>
|
||||
<h2 class="name">{{ repository.name }}</h2>
|
||||
<p class="id">
|
||||
<font-awesome-icon :icon="['fas', 'book']" />
|
||||
ID: {{ repository.id }}
|
||||
</p>
|
||||
<p class="description">
|
||||
{{ repository.description }}
|
||||
</p>
|
||||
</el-card>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</div>
|
||||
</template>
|
||||
</layout>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { defineComponent } from 'vue';
|
||||
import Layout from '@/layouts/Chatdoc.vue';
|
||||
import { ElCard, ElRow, ElCol, ElDropdown, ElDropdownItem, ElDropdownMenu, ElMessage } from 'element-plus';
|
||||
import { IChatdocRepository } from '@/models';
|
||||
import { ROUTE_CHATDOC_MANAGE } from '@/router';
|
||||
import CreateRepository from '@/components/chatdoc/CreateRepository.vue';
|
||||
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
|
||||
import ApplicationStatus from '@/components/application/Status.vue';
|
||||
import { Status } from '@/models';
|
||||
|
||||
export default defineComponent({
|
||||
name: 'ChatdocKnowledge',
|
||||
components: {
|
||||
Layout,
|
||||
ElCard,
|
||||
ElRow,
|
||||
ElCol,
|
||||
CreateRepository,
|
||||
FontAwesomeIcon,
|
||||
ElDropdown,
|
||||
ElDropdownItem,
|
||||
ElDropdownMenu,
|
||||
ApplicationStatus
|
||||
},
|
||||
data() {
|
||||
return {};
|
||||
},
|
||||
computed: {
|
||||
repositories() {
|
||||
return this.$store.state.chatdoc.repositories;
|
||||
},
|
||||
needApply() {
|
||||
return this.$store.state.chatdoc.status.getApplications === Status.Success && !this.application;
|
||||
},
|
||||
application() {
|
||||
return this.$store.state.chatdoc.application;
|
||||
},
|
||||
service() {
|
||||
return this.$store.state.chatdoc.service;
|
||||
},
|
||||
initializing() {
|
||||
return this.$store.state.chatdoc.status.getApplications === Status.Request;
|
||||
}
|
||||
},
|
||||
async mounted() {},
|
||||
methods: {
|
||||
onClick(repository: IChatdocRepository) {
|
||||
this.$router.push({
|
||||
name: ROUTE_CHATDOC_MANAGE,
|
||||
params: {
|
||||
repositoryId: repository.id
|
||||
}
|
||||
});
|
||||
},
|
||||
onDelete(id: string) {
|
||||
this.$store.dispatch('chatdoc/deleteRepository', { id }).then(() => {
|
||||
ElMessage.success(this.$t('chatdoc.message.deleteRepositorySuccess'));
|
||||
this.$store.dispatch('chatdoc/getRepositories');
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.wrapper {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
padding: 20px;
|
||||
background-color: var(--el-bg-color-page);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.title {
|
||||
font-size: 20px;
|
||||
font-weight: bold;
|
||||
margin-bottom: 20px;
|
||||
color: var(--el-text-color-primary);
|
||||
}
|
||||
|
||||
.introduction {
|
||||
margin-bottom: 20px;
|
||||
font-size: 14px;
|
||||
color: var(--el-text-color-regular);
|
||||
}
|
||||
|
||||
.status {
|
||||
margin-bottom: 10px;
|
||||
width: fit-content;
|
||||
}
|
||||
|
||||
.repositories {
|
||||
flex: 1;
|
||||
overflow-y: scroll;
|
||||
.repository {
|
||||
width: 100%;
|
||||
height: 150px;
|
||||
margin-bottom: 20px;
|
||||
cursor: pointer;
|
||||
position: relative;
|
||||
|
||||
.el-dropdown {
|
||||
position: absolute;
|
||||
right: 20px;
|
||||
top: 20px;
|
||||
}
|
||||
|
||||
.operation {
|
||||
font-size: 16px;
|
||||
font-weight: bold;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.name {
|
||||
font-size: 16px;
|
||||
font-weight: bold;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.id {
|
||||
font-size: 12px;
|
||||
color: var(--el-text-color-regular);
|
||||
}
|
||||
|
||||
.description {
|
||||
font-size: 12px;
|
||||
color: var(--el-text-color-regular);
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -1,178 +0,0 @@
|
||||
<template>
|
||||
<layout>
|
||||
<template #chatdoc>
|
||||
<div class="wrapper">
|
||||
<div class="title">
|
||||
{{ $t('chatdoc.title.manage') }}
|
||||
</div>
|
||||
<div class="introduction">
|
||||
{{ $t('chatdoc.message.introductionForKnowledge') }}
|
||||
</div>
|
||||
<div class="status">
|
||||
<application-status
|
||||
:show-price="false"
|
||||
:initializing="initializing"
|
||||
:application="application"
|
||||
:need-apply="needApply"
|
||||
:service="service"
|
||||
@refresh="$store.dispatch('chatdoc/getApplications')"
|
||||
/>
|
||||
</div>
|
||||
<div class="operations">
|
||||
<upload-document />
|
||||
</div>
|
||||
<div class="documents">
|
||||
<el-table v-loading="loading" :data="documents" border>
|
||||
<el-table-column prop="id" label="ID" />
|
||||
<el-table-column prop="file_name" :label="$t('chatdoc.field.fileName')" />
|
||||
<el-table-column :label="$t('chatdoc.field.fileExtension')" width="100px">
|
||||
<template #default="scope">
|
||||
{{ scope.row.file_name.split('.').pop() }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column :label="$t('chatdoc.field.createdAt')" width="200px">
|
||||
<template #default="scope">
|
||||
{{ scope.row.created_at ? $dayjs.format(scope.row.created_at) : '' }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column :label="$t('chatdoc.field.state')" width="180px">
|
||||
<template #default="scope">
|
||||
<el-tag v-if="scope.row.state === 'processing'" type="info">
|
||||
{{ $t('chatdoc.field.stateProcessing') }}
|
||||
</el-tag>
|
||||
<el-tag v-if="scope.row.state === 'failed'" type="danger">
|
||||
{{ $t('chatdoc.field.stateFailed') }}
|
||||
</el-tag>
|
||||
<el-tag v-if="scope.row.state === 'completed'" type="success">
|
||||
{{ $t('chatdoc.field.stateCompleted') }}
|
||||
</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column>
|
||||
<template #default="scope">
|
||||
<el-button type="primary" round size="small" @click="onPreview(scope.row.file_url)">
|
||||
{{ $t('common.button.preview') }}
|
||||
</el-button>
|
||||
<el-button type="danger" round size="small" @click="onDelete(scope.row.id)">
|
||||
{{ $t('common.button.delete') }}
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
</layout>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { defineComponent } from 'vue';
|
||||
import Layout from '@/layouts/Chatdoc.vue';
|
||||
import { IChatdocRepository } from '@/models';
|
||||
import { ElButton, ElTag, ElTable, ElTableColumn, ElMessage } from 'element-plus';
|
||||
import UploadDocument from '@/components/chatdoc/UploadDocument.vue';
|
||||
import { Status } from '@/models';
|
||||
import ApplicationStatus from '@/components/application/Status.vue';
|
||||
|
||||
export default defineComponent({
|
||||
name: 'ChatdocKnowledge',
|
||||
components: {
|
||||
Layout,
|
||||
ElButton,
|
||||
ElTable,
|
||||
ElTag,
|
||||
ApplicationStatus,
|
||||
ElTableColumn,
|
||||
UploadDocument
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
loading: false,
|
||||
repositoryId: this.$route.params.repositoryId.toString()
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
repository(): IChatdocRepository | undefined {
|
||||
return this.$store.state?.chatdoc?.repositories?.find((repository) => repository.id === this.repositoryId);
|
||||
},
|
||||
documents() {
|
||||
return this.repository?.documents;
|
||||
},
|
||||
needApply() {
|
||||
return this.$store.state.chatdoc.status.getApplications === Status.Success && !this.application;
|
||||
},
|
||||
service() {
|
||||
return this.$store.state.chatdoc.service;
|
||||
},
|
||||
application() {
|
||||
return this.$store.state.chatdoc.application;
|
||||
},
|
||||
initializing() {
|
||||
return this.$store.state.chatdoc.status.getApplications === Status.Request;
|
||||
}
|
||||
},
|
||||
async mounted() {
|
||||
console.log('start get documents');
|
||||
this.loading = true;
|
||||
this.$store
|
||||
.dispatch('chatdoc/getDocuments', { repositoryId: this.repositoryId })
|
||||
.then(() => {
|
||||
this.loading = false;
|
||||
})
|
||||
.catch(() => {
|
||||
this.loading = false;
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
onDelete(id: string) {
|
||||
this.$store.dispatch('chatdoc/deleteDocument', { id }).then(() => {
|
||||
ElMessage.success(this.$t('chatdoc.message.deleteDocumentSuccess'));
|
||||
this.$store.dispatch('chatdoc/getDocuments', {
|
||||
repositoryId: this.repositoryId
|
||||
});
|
||||
});
|
||||
},
|
||||
onPreview(url: string) {
|
||||
window.open(url, '_blank');
|
||||
}
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.wrapper {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding: 30px;
|
||||
}
|
||||
|
||||
.el-button {
|
||||
border-radius: 20px;
|
||||
}
|
||||
|
||||
.title {
|
||||
font-size: 20px;
|
||||
font-weight: bold;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.introduction {
|
||||
margin-bottom: 20px;
|
||||
font-size: 14px;
|
||||
color: var(--el-text-color-regular);
|
||||
}
|
||||
|
||||
.operations {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.documents {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.status {
|
||||
margin-bottom: 10px;
|
||||
width: fit-content;
|
||||
}
|
||||
</style>
|
||||
@@ -1,22 +0,0 @@
|
||||
<template>
|
||||
<layout>
|
||||
<template #chatdoc> Setting </template>
|
||||
</layout>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { defineComponent } from 'vue';
|
||||
import Layout from '@/layouts/Chatdoc.vue';
|
||||
|
||||
export default defineComponent({
|
||||
name: 'ChatdocSetting',
|
||||
components: {
|
||||
Layout
|
||||
},
|
||||
data() {
|
||||
return {};
|
||||
},
|
||||
async mounted() {},
|
||||
methods: {}
|
||||
});
|
||||
</script>
|
||||
@@ -10,7 +10,7 @@
|
||||
<el-col :span="24">
|
||||
<el-card shadow="hover" class="card">
|
||||
<el-row>
|
||||
<el-col :span="16" :offset="4">
|
||||
<el-col class="max-w-4xl mx-auto">
|
||||
<p class="introduction">
|
||||
{{ $t('console.subscription.title') }}
|
||||
</p>
|
||||
|
||||
@@ -168,8 +168,14 @@ export default defineComponent({
|
||||
await this.$store.dispatch('resetAll');
|
||||
await this.$store.dispatch('chat/resetAll');
|
||||
await this.$store.dispatch('midjourney/resetAll');
|
||||
await this.$store.dispatch('chatdoc/resetAll');
|
||||
await this.$store.dispatch('qrart/resetAll');
|
||||
await this.$store.dispatch('flux/resetAll');
|
||||
await this.$store.dispatch('hailuo/resetAll');
|
||||
await this.$store.dispatch('headshots/resetAll');
|
||||
await this.$store.dispatch('kling/resetAll');
|
||||
await this.$store.dispatch('luma/resetAll');
|
||||
await this.$store.dispatch('pika/resetAll');
|
||||
await this.$store.dispatch('suno/resetAll');
|
||||
await this.$store.dispatch('login');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,43 +0,0 @@
|
||||
import {
|
||||
ROUTE_CHATDOC_CONVERSATION,
|
||||
ROUTE_CHATDOC_CONVERSATION_NEW,
|
||||
ROUTE_CHATDOC_INDEX,
|
||||
ROUTE_CHATDOC_MANAGE,
|
||||
ROUTE_CHATDOC_SETTING
|
||||
} from './constants';
|
||||
|
||||
export default {
|
||||
path: '/chatdoc',
|
||||
meta: {
|
||||
auth: true,
|
||||
appName: 'chatdoc'
|
||||
},
|
||||
component: () => import('@/layouts/Main.vue'),
|
||||
children: [
|
||||
{
|
||||
path: '',
|
||||
name: ROUTE_CHATDOC_INDEX,
|
||||
component: () => import('@/pages/chatdoc/Index.vue')
|
||||
},
|
||||
{
|
||||
path: 'repositories/:repositoryId/conversations',
|
||||
name: ROUTE_CHATDOC_CONVERSATION_NEW,
|
||||
component: () => import('@/pages/chatdoc/Conversation.vue')
|
||||
},
|
||||
{
|
||||
path: 'repositories/:repositoryId/conversations/:conversationId',
|
||||
name: ROUTE_CHATDOC_CONVERSATION,
|
||||
component: () => import('@/pages/chatdoc/Conversation.vue')
|
||||
},
|
||||
{
|
||||
path: 'repositories/:repositoryId/manage',
|
||||
name: ROUTE_CHATDOC_MANAGE,
|
||||
component: () => import('@/pages/chatdoc/Manage.vue')
|
||||
},
|
||||
{
|
||||
path: 'repositories/:repositoryId',
|
||||
name: ROUTE_CHATDOC_SETTING,
|
||||
component: () => import('@/pages/chatdoc/Setting.vue')
|
||||
}
|
||||
]
|
||||
};
|
||||
@@ -37,12 +37,6 @@ export const ROUTE_HAILUO_HISTORY = 'hailuo-history';
|
||||
export const ROUTE_HEADSHOTS_INDEX = 'headshots-index';
|
||||
export const ROUTE_HEADSHOTS_HISTORY = 'headshots-history';
|
||||
|
||||
export const ROUTE_CHATDOC_INDEX = 'chatdoc-index';
|
||||
export const ROUTE_CHATDOC_CONVERSATION = 'chatdoc-conversation';
|
||||
export const ROUTE_CHATDOC_CONVERSATION_NEW = 'chatdoc-conversation-new';
|
||||
export const ROUTE_CHATDOC_SETTING = 'chatdoc-setting';
|
||||
export const ROUTE_CHATDOC_MANAGE = 'chatdoc-knowledge';
|
||||
|
||||
export const ROUTE_SUNO_INDEX = 'suno-index';
|
||||
export const ROUTE_SUNO_HISTORY = 'suno-history';
|
||||
|
||||
|
||||
@@ -6,7 +6,6 @@ import deepseek from './deepseek';
|
||||
import chatgpt from './chatgpt';
|
||||
import midjourney from './midjourney';
|
||||
import distribution from './distribution';
|
||||
import chatdoc from './chatdoc';
|
||||
import qrart from './qrart';
|
||||
import luma from './luma';
|
||||
import pika from './pika';
|
||||
@@ -28,7 +27,6 @@ const routes = [
|
||||
redirect: { name: ROUTE_CHATGPT_CONVERSATION_NEW }
|
||||
},
|
||||
console,
|
||||
chatdoc,
|
||||
auth,
|
||||
chatgpt,
|
||||
grok,
|
||||
|
||||
@@ -1,357 +0,0 @@
|
||||
import { IRootState } from '../common/models';
|
||||
import { ActionContext } from 'vuex';
|
||||
import { IChatdocState } from './models';
|
||||
import {
|
||||
IApplication,
|
||||
IChatdocConversation,
|
||||
IChatdocDocument,
|
||||
IChatdocMessage,
|
||||
IChatdocRepository,
|
||||
ICredential,
|
||||
IService,
|
||||
Status
|
||||
} from '@/models';
|
||||
import { chatdocOperator, applicationOperator, serviceOperator, credentialOperator } from '@/operators';
|
||||
import { CHATDOC_SERVICE_ID } from '@/constants';
|
||||
import { getFinalApplication } from '@/utils';
|
||||
|
||||
export const resetAll = ({ commit }: ActionContext<IChatdocState, IRootState>): void => {
|
||||
commit('resetAll');
|
||||
};
|
||||
|
||||
export const setApplication = async ({ commit, dispatch }: any, payload: IApplication): Promise<void> => {
|
||||
console.debug('set application', payload);
|
||||
commit('setApplication', payload);
|
||||
if (!payload) {
|
||||
console.debug('application is null, return');
|
||||
return;
|
||||
}
|
||||
const credential = payload?.credentials?.find((credential) => credential?.host === window.location.origin);
|
||||
if (credential) {
|
||||
console.debug('credential exists, set credential', credential);
|
||||
commit('setCredential', credential);
|
||||
} else {
|
||||
console.debug('credential not exists, start to create credential for application', payload);
|
||||
await dispatch('createCredential');
|
||||
}
|
||||
};
|
||||
|
||||
export const setApplications = async ({ commit }: any, payload: IApplication[]): Promise<void> => {
|
||||
console.debug('set applications', payload);
|
||||
commit('setApplications', payload);
|
||||
};
|
||||
|
||||
export const setService = async ({ commit }: any, payload: IService): Promise<void> => {
|
||||
console.debug('set service', payload);
|
||||
commit('setService', payload);
|
||||
};
|
||||
|
||||
export const setCredential = async ({ commit }: any, payload: ICredential): Promise<void> => {
|
||||
console.debug('set credential', payload);
|
||||
commit('setCredential', payload);
|
||||
};
|
||||
|
||||
export const createCredential = async ({ commit, state }: any): Promise<ICredential | undefined> => {
|
||||
const application = state.application;
|
||||
console.debug('prepare to create credential for application', application);
|
||||
if (!application) {
|
||||
console.error('Application not found');
|
||||
return undefined;
|
||||
}
|
||||
console.debug('creating create credential for application', application);
|
||||
const { data: credential } = await credentialOperator.create({
|
||||
application_id: application?.id,
|
||||
host: window.location.origin
|
||||
});
|
||||
console.debug('created credential success', credential);
|
||||
commit('setCredential', credential);
|
||||
console.debug('end createCredential');
|
||||
return credential;
|
||||
};
|
||||
|
||||
export const getService = async ({
|
||||
commit,
|
||||
state
|
||||
}: ActionContext<IChatdocState, IRootState>): Promise<IService | undefined> => {
|
||||
state.status.getService = Status.Request;
|
||||
try {
|
||||
const { data: service } = await serviceOperator.get(CHATDOC_SERVICE_ID);
|
||||
state.status.getService = Status.Success;
|
||||
commit('setService', service);
|
||||
return service;
|
||||
} catch (error) {
|
||||
state.status.getService = Status.Error;
|
||||
commit('setService', undefined);
|
||||
}
|
||||
};
|
||||
|
||||
export const getApplications = async ({
|
||||
commit,
|
||||
dispatch,
|
||||
state,
|
||||
rootState
|
||||
}: ActionContext<IChatdocState, IRootState>): Promise<IApplication[] | undefined> => {
|
||||
console.debug('start to get applications for chat');
|
||||
state.status.getApplications = Status.Request;
|
||||
const currentApplication = state.application;
|
||||
console.debug('current application', currentApplication);
|
||||
try {
|
||||
const { data: applications } = await applicationOperator.getAll({
|
||||
user_id: rootState?.user?.id,
|
||||
service_id: CHATDOC_SERVICE_ID
|
||||
});
|
||||
state.status.getApplications = Status.Success;
|
||||
commit('setApplications', applications.items);
|
||||
const finalApplication = getFinalApplication(applications.items, currentApplication);
|
||||
if (finalApplication) {
|
||||
console.debug('set final application', finalApplication, finalApplication?.type);
|
||||
await dispatch('setApplication', finalApplication);
|
||||
} else {
|
||||
console.debug('set application undefined', undefined);
|
||||
commit('setApplication', undefined);
|
||||
}
|
||||
return applications.items;
|
||||
} catch (error) {
|
||||
console.error('get applications failed', error);
|
||||
state.status.getApplications = Status.Error;
|
||||
commit('setApplications', undefined);
|
||||
commit('setApplication', undefined);
|
||||
}
|
||||
};
|
||||
|
||||
export const getRepositories = async ({
|
||||
commit,
|
||||
state
|
||||
}: ActionContext<IChatdocState, IRootState>): Promise<IChatdocRepository[]> => {
|
||||
console.debug('start to get repositories');
|
||||
const credential = state.credential;
|
||||
console.log('credential', credential);
|
||||
const token = credential?.token;
|
||||
if (!token) {
|
||||
commit('setRepositories', undefined);
|
||||
return Promise.reject('no token');
|
||||
}
|
||||
const repositories = (
|
||||
await chatdocOperator.getAllRepositories({
|
||||
token
|
||||
})
|
||||
).data.items;
|
||||
console.debug('get repositories success', repositories);
|
||||
commit('setRepositories', repositories);
|
||||
return repositories;
|
||||
};
|
||||
|
||||
export const deleteRepository = async (
|
||||
{ state }: ActionContext<IChatdocState, IRootState>,
|
||||
payload: {
|
||||
id: string;
|
||||
}
|
||||
): Promise<IChatdocRepository> => {
|
||||
console.debug('start to delete repository');
|
||||
const credential = state.credential;
|
||||
console.log('credential', credential);
|
||||
const token = credential?.token;
|
||||
if (!token) {
|
||||
return Promise.reject('no token');
|
||||
}
|
||||
const repository = (
|
||||
await chatdocOperator.deleteRepository(payload.id, {
|
||||
token
|
||||
})
|
||||
).data;
|
||||
console.debug('delete repository success', repository);
|
||||
return repository;
|
||||
};
|
||||
|
||||
export const deleteDocument = async (
|
||||
{ state }: ActionContext<IChatdocState, IRootState>,
|
||||
payload: {
|
||||
id: string;
|
||||
}
|
||||
): Promise<IChatdocDocument> => {
|
||||
console.debug('start to delete document');
|
||||
const credential = state.credential;
|
||||
console.log('credential', credential);
|
||||
const token = credential?.token;
|
||||
if (!token) {
|
||||
return Promise.reject('no token');
|
||||
}
|
||||
const document = (
|
||||
await chatdocOperator.deleteDocument(payload.id, {
|
||||
token
|
||||
})
|
||||
).data;
|
||||
console.debug('delete document success', document);
|
||||
return document;
|
||||
};
|
||||
|
||||
export const createRepository = async (
|
||||
{ state }: ActionContext<IChatdocState, IRootState>,
|
||||
payload: {
|
||||
name: string;
|
||||
description?: string;
|
||||
}
|
||||
): Promise<IChatdocRepository> => {
|
||||
console.debug('start to create repository');
|
||||
const credential = state.credential;
|
||||
console.log('credential', credential);
|
||||
const token = credential?.token;
|
||||
if (!token) {
|
||||
return Promise.reject('no token');
|
||||
}
|
||||
const repository = (
|
||||
await chatdocOperator.createRepository(payload, {
|
||||
token
|
||||
})
|
||||
).data;
|
||||
console.debug('create repository success', repository);
|
||||
return repository;
|
||||
};
|
||||
|
||||
export const createDocument = async (
|
||||
{ state }: ActionContext<IChatdocState, IRootState>,
|
||||
payload: {
|
||||
repositoryId: string;
|
||||
fileUrl: string;
|
||||
fileName: string;
|
||||
}
|
||||
): Promise<IChatdocDocument> => {
|
||||
console.debug('start to create document');
|
||||
const credential = state.credential;
|
||||
console.log('credential', credential);
|
||||
const token = credential?.token;
|
||||
if (!token) {
|
||||
return Promise.reject('no token');
|
||||
}
|
||||
const document = (
|
||||
await chatdocOperator.createDocument(payload, {
|
||||
token
|
||||
})
|
||||
).data;
|
||||
console.debug('create document success', document);
|
||||
return document;
|
||||
};
|
||||
|
||||
export const setConversation = async (
|
||||
{ commit, state }: any,
|
||||
payload: {
|
||||
id: string;
|
||||
messages: IChatdocMessage[];
|
||||
repositoryId: string;
|
||||
}
|
||||
): Promise<void> => {
|
||||
console.debug('set conversation', payload);
|
||||
const repository: IChatdocRepository | undefined = state.repositories.find(
|
||||
(repository: IChatdocRepository) => repository.id === payload.repositoryId
|
||||
);
|
||||
const conversations = repository?.conversations;
|
||||
if (!conversations) {
|
||||
return Promise.reject('no conversations');
|
||||
}
|
||||
const index = conversations?.findIndex((conversation: IChatdocConversation) => conversation.id === payload.id);
|
||||
if (index > -1) {
|
||||
conversations[index].messages = payload.messages;
|
||||
}
|
||||
console.debug('set conversation success', conversations);
|
||||
};
|
||||
|
||||
export const getDocuments = async (
|
||||
{ commit, state }: ActionContext<IChatdocState, IRootState>,
|
||||
payload: { repositoryId: string }
|
||||
): Promise<IChatdocDocument[]> => {
|
||||
console.debug('start to get documents');
|
||||
const credential = state.credential;
|
||||
console.log('credential for getDocuments', credential);
|
||||
const token = credential?.token;
|
||||
if (!token) {
|
||||
commit('setRepository', {
|
||||
id: payload.repositoryId,
|
||||
documents: []
|
||||
});
|
||||
return [];
|
||||
}
|
||||
const documents = (
|
||||
await chatdocOperator.getAllDocuments(payload.repositoryId, {
|
||||
token
|
||||
})
|
||||
).data.items;
|
||||
console.debug('get documents success', documents);
|
||||
commit('setRepository', {
|
||||
id: payload.repositoryId,
|
||||
documents: documents
|
||||
});
|
||||
return documents;
|
||||
};
|
||||
|
||||
export const getConversations = async (
|
||||
{ commit, state }: ActionContext<IChatdocState, IRootState>,
|
||||
payload: { repositoryId: string }
|
||||
): Promise<IChatdocConversation[]> => {
|
||||
console.debug('start to get conversations');
|
||||
const credential = state.credential;
|
||||
console.log('credential for getConversations', credential);
|
||||
const token = credential?.token;
|
||||
if (!token) {
|
||||
commit('setRepository', {
|
||||
id: payload.repositoryId,
|
||||
conversations: []
|
||||
});
|
||||
return [];
|
||||
}
|
||||
const conversations = (
|
||||
await chatdocOperator.getAllConversations(payload.repositoryId, {
|
||||
token
|
||||
})
|
||||
).data.items;
|
||||
console.debug('get conversations success', conversations);
|
||||
commit('setRepository', {
|
||||
id: payload.repositoryId,
|
||||
conversations: conversations
|
||||
});
|
||||
return conversations;
|
||||
};
|
||||
|
||||
export const getRepository = async (
|
||||
{ commit, state }: ActionContext<IChatdocState, IRootState>,
|
||||
payload: { id: string }
|
||||
): Promise<IChatdocRepository> => {
|
||||
console.debug('start to get repository');
|
||||
const credential = state.credential;
|
||||
const token = credential?.token;
|
||||
if (!token) {
|
||||
commit('setRepository', { id: payload.id });
|
||||
return Promise.reject('no token');
|
||||
}
|
||||
const repository = (
|
||||
await chatdocOperator.getRepository(payload.id, {
|
||||
token
|
||||
})
|
||||
).data;
|
||||
console.debug('get repository success', repository);
|
||||
commit('setRepository', repository);
|
||||
return repository;
|
||||
};
|
||||
|
||||
export const setRepository = async ({ commit }: any, payload: { repository: IChatdocRepository }): Promise<void> => {
|
||||
commit('setRepository', payload);
|
||||
};
|
||||
|
||||
export default {
|
||||
createCredential,
|
||||
setService,
|
||||
setConversation,
|
||||
getService,
|
||||
createRepository,
|
||||
setApplication,
|
||||
getApplications,
|
||||
getRepositories,
|
||||
setCredential,
|
||||
deleteRepository,
|
||||
getRepository,
|
||||
setRepository,
|
||||
getConversations,
|
||||
getDocuments,
|
||||
resetAll,
|
||||
createDocument,
|
||||
deleteDocument
|
||||
};
|
||||
@@ -1,14 +0,0 @@
|
||||
import { Module } from 'vuex';
|
||||
import actions from './actions';
|
||||
import mutations from './mutations';
|
||||
import state from './state';
|
||||
import { IChatdocState } from './models';
|
||||
|
||||
export const chatdoc: Module<IChatdocState, any> = {
|
||||
namespaced: true,
|
||||
state,
|
||||
mutations,
|
||||
actions
|
||||
};
|
||||
|
||||
export default chatdoc;
|
||||
@@ -1,14 +0,0 @@
|
||||
import { IApplication, IChatdocRepository, ICredential, IService, Status } from '@/models';
|
||||
|
||||
export interface IChatdocState {
|
||||
service: IService | undefined;
|
||||
application: IApplication | undefined;
|
||||
applications: IApplication[] | undefined;
|
||||
repositories: IChatdocRepository[] | undefined;
|
||||
credential: ICredential | undefined;
|
||||
status: {
|
||||
getService: Status;
|
||||
getApplications: Status;
|
||||
getRepositories: Status;
|
||||
};
|
||||
}
|
||||
@@ -1,74 +0,0 @@
|
||||
import { IApplication, IChatdocRepository, ICredential, IService } from '@/models';
|
||||
import { IChatdocState } from './models';
|
||||
|
||||
export const resetAll = (state: IChatdocState): void => {
|
||||
state.application = undefined;
|
||||
state.repositories = [];
|
||||
};
|
||||
|
||||
export const setService = (state: IChatdocState, payload: IService): void => {
|
||||
state.service = payload;
|
||||
};
|
||||
|
||||
export const setApplication = (state: IChatdocState, payload: IApplication): void => {
|
||||
state.application = payload;
|
||||
};
|
||||
export const setApplications = (state: IChatdocState, payload: IApplication[]): void => {
|
||||
state.applications = payload;
|
||||
};
|
||||
|
||||
export const setRepositories = (state: IChatdocState, payload: IChatdocRepository[]): void => {
|
||||
const currentRepositories = state.repositories;
|
||||
if (currentRepositories && payload) {
|
||||
// merge current repositories into payload
|
||||
payload.forEach((repository: IChatdocRepository) => {
|
||||
const index = currentRepositories?.findIndex((item: IChatdocRepository) => item.id === repository.id);
|
||||
if (index !== -1) {
|
||||
payload[index] = {
|
||||
...currentRepositories[index],
|
||||
...repository
|
||||
};
|
||||
}
|
||||
});
|
||||
state.repositories = payload;
|
||||
return;
|
||||
} else {
|
||||
// set the repositories
|
||||
state.repositories = payload;
|
||||
}
|
||||
};
|
||||
|
||||
export const setCredential = (state: IChatdocState, payload: ICredential): void => {
|
||||
state.credential = payload;
|
||||
};
|
||||
|
||||
export const setRepository = (state: IChatdocState, payload: IChatdocRepository): void => {
|
||||
console.debug('mutation', payload);
|
||||
// find the repository and set it
|
||||
const repository = payload;
|
||||
const repositories = state.repositories;
|
||||
if (!repositories) {
|
||||
console.debug('no repositories');
|
||||
return;
|
||||
}
|
||||
const index = repositories.findIndex((item: IChatdocRepository) => item.id === repository.id);
|
||||
if (index === -1) {
|
||||
console.debug('no repository found');
|
||||
return;
|
||||
}
|
||||
console.debug('set repository for index', index, repository);
|
||||
repositories[index] = {
|
||||
...repositories[index],
|
||||
...repository
|
||||
};
|
||||
};
|
||||
|
||||
export default {
|
||||
setService,
|
||||
setApplication,
|
||||
setApplications,
|
||||
setRepositories,
|
||||
setRepository,
|
||||
setCredential,
|
||||
resetAll
|
||||
};
|
||||
@@ -1 +0,0 @@
|
||||
export default ['chatdoc.repositories', 'chatdoc.credential', 'chatdoc.service', 'chatdoc.application'];
|
||||
@@ -1,17 +0,0 @@
|
||||
import { Status } from '@/models';
|
||||
import { IChatdocState } from './models';
|
||||
|
||||
export default (): IChatdocState => {
|
||||
return {
|
||||
service: undefined,
|
||||
application: undefined,
|
||||
applications: undefined,
|
||||
repositories: undefined,
|
||||
credential: undefined,
|
||||
status: {
|
||||
getService: Status.None,
|
||||
getApplications: Status.None,
|
||||
getRepositories: Status.None
|
||||
}
|
||||
};
|
||||
};
|
||||
@@ -159,7 +159,6 @@ export const logout = async ({ dispatch }: ActionContext<IRootState, IRootState>
|
||||
await dispatch('resetAll');
|
||||
await dispatch('chat/resetAll');
|
||||
await dispatch('midjourney/resetAll');
|
||||
await dispatch('chatdoc/resetAll');
|
||||
await dispatch('flux/resetAll');
|
||||
await dispatch('hailuo/resetAll');
|
||||
await dispatch('headshots/resetAll');
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import { ISite, IToken, IUser } from '@/models';
|
||||
import { IMidjourneyState } from '../midjourney/models';
|
||||
import { IChatState } from '../chat/models';
|
||||
import { IChatdocState } from '../chatdoc/models';
|
||||
import { IQrartState } from '../qrart/models';
|
||||
import { ILumaState } from '../luma/models';
|
||||
import { IPikaState } from '../pika/models';
|
||||
@@ -34,7 +33,6 @@ export interface ICommonState {
|
||||
export interface IAppState {
|
||||
midjourney: IMidjourneyState;
|
||||
chat: IChatState;
|
||||
chatdoc: IChatdocState;
|
||||
qrart: IQrartState;
|
||||
luma: ILumaState;
|
||||
pika: IPikaState;
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import { IRootState } from './models';
|
||||
import chatState from '../chat/state';
|
||||
import midjourneyState from '../midjourney/state';
|
||||
import chatdocState from '../chatdoc/state';
|
||||
import qrartState from '../qrart/state';
|
||||
import lumaState from '../luma/state';
|
||||
import pikaState from '../pika/state';
|
||||
@@ -28,7 +27,6 @@ export default (): IRootState => {
|
||||
},
|
||||
setting: {},
|
||||
site: {},
|
||||
chatdoc: chatdocState(),
|
||||
chat: chatState(),
|
||||
midjourney: midjourneyState(),
|
||||
qrart: qrartState(),
|
||||
|
||||
+1
-5
@@ -2,7 +2,6 @@ import { createStore } from 'vuex';
|
||||
import createPersistedState from 'vuex-persistedstate';
|
||||
import midjourney from './midjourney';
|
||||
import chat from './chat';
|
||||
import chatdoc from './chatdoc';
|
||||
import qrart from './qrart';
|
||||
import luma from './luma';
|
||||
import pika from './pika';
|
||||
@@ -14,7 +13,6 @@ import suno from './suno';
|
||||
import root from './common';
|
||||
import persistChat from './chat/persist';
|
||||
import persistMidjourney from './midjourney/persist';
|
||||
import persistChatdoc from './chatdoc/persist';
|
||||
import persistQrart from './qrart/persist';
|
||||
import persistLuma from './luma/persist';
|
||||
import persistPika from './pika/persist';
|
||||
@@ -37,8 +35,7 @@ const store = createStore({
|
||||
flux: flux,
|
||||
hailuo: hailuo,
|
||||
headshots: headshots,
|
||||
suno: suno,
|
||||
chatdoc: chatdoc
|
||||
suno: suno
|
||||
},
|
||||
plugins: [
|
||||
createPersistedState({
|
||||
@@ -46,7 +43,6 @@ const store = createStore({
|
||||
...persistRoot,
|
||||
...persistChat,
|
||||
...persistMidjourney,
|
||||
...persistChatdoc,
|
||||
...persistQrart,
|
||||
...persistLuma,
|
||||
...persistPika,
|
||||
|
||||
Reference in new issue
Block a user