Skip to content
Open
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
5 changes: 3 additions & 2 deletions app/components/AssistantChat.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
import { DefaultChatTransport, isReasoningUIPart, isTextUIPart, isToolUIPart, getToolName, type ToolUIPart, type DynamicToolUIPart, type UIMessage } from 'ai'
import { useChat } from '@ai-sdk/vue'
import { isPartStreaming, isToolStreaming } from '@nuxt/ui/utils/ai'
import highlight from '@comark/nuxt/plugins/highlight'
import rangi from 'comark/plugins/rangi'
import { geistTheme } from '../../utils/geist-theme'

const MAX_INPUT = 1000

Expand All @@ -14,7 +15,7 @@ const { messages, status, error, sendMessage, regenerate, stop } = useChat({
transport: new DefaultChatTransport({ api: '/api/assistant' }),
})

const plugins = [highlight()]
const plugins = [rangi({ theme: geistTheme })]

// Suggestions grouped by category, shown before the first message.
const questions = computed(() => assistant?.faqQuestions ?? [])
Expand Down
Loading