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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/ChattyLLM/ChattyLLMInputForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
:aria-label="t('assistant', 'Retry response generation')"
:disabled="loading.initialMessages || loading.llmGeneration"
type="secondary"
@click="runGenerationTask">
@click="runGenerationTask(active.id)">
{{ t('assistant', 'Retry response generation') }}
</NcButton>
</div>
Expand Down Expand Up @@ -555,7 +555,7 @@
this.loading.initialMessages = false
this.messagesAxiosController = null
} catch (error) {
if (axios.isCancel(error)) {

Check warning on line 558 in src/components/ChattyLLM/ChattyLLMInputForm.vue

View workflow job for this annotation

GitHub Actions / NPM build

Caution: `axios` also has a named export `isCancel`. Check if you meant to write `import {isCancel} from '@nextcloud/axios'` instead

Check warning on line 558 in src/components/ChattyLLM/ChattyLLMInputForm.vue

View workflow job for this annotation

GitHub Actions / NPM build

Caution: `axios` also has a named export `isCancel`. Check if you meant to write `import {isCancel} from '@nextcloud/axios'` instead

Check warning on line 558 in src/components/ChattyLLM/ChattyLLMInputForm.vue

View workflow job for this annotation

GitHub Actions / NPM lint

Caution: `axios` also has a named export `isCancel`. Check if you meant to write `import {isCancel} from '@nextcloud/axios'` instead
console.debug('fetchMessages cancelled')
return
}
Expand Down
5 changes: 2 additions & 3 deletions src/components/ChattyLLM/Message.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
- SPDX-License-Identifier: AGPL-3.0-or-later
-->
<template>
<div v-if="message.content"
<div
class="message"
@mouseover="showMessageActions = true"
@mouseleave="showMessageActions = false">
Expand Down Expand Up @@ -34,12 +34,11 @@
<NcDateTime class="message__header__timestamp" :timestamp="new Date((message?.timestamp ?? 0) * 1000)" :ignore-seconds="true" />
</div>
<NcRichText class="message__content"
:text="message.content"
:text="message.content || t('assistant', '(empty message)')"
:use-markdown="true"
:reference-limit="1"
:autolink="true" />
</div>
<div v-else />
</template>

<script>
Expand Down
Loading