mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 20:19:34 +01:00
up
This commit is contained in:
@@ -157,7 +157,7 @@ function onClose(e: Event) {
|
||||
<UChatMessages
|
||||
:messages="messages"
|
||||
:status="status"
|
||||
:user="{ side: 'left', variant: 'naked', avatar: { src: 'https://github.com/benjamincanac.png' } }"
|
||||
:user="{ side: 'left', variant: 'naked', icon: 'i-lucide-user' }"
|
||||
:assistant="{ icon: 'i-lucide-bot' }"
|
||||
>
|
||||
<template #content="{ message }">
|
||||
|
||||
@@ -17,7 +17,6 @@ export default defineEventHandler(async (event) => {
|
||||
|
||||
return streamText({
|
||||
model: workersAI('@cf/meta/llama-3.3-70b-instruct-fp8-fast'),
|
||||
maxTokens: 10000,
|
||||
messages,
|
||||
system: `You are a helpful assistant for Nuxt UI. Check your knowledge base before answering any questions.
|
||||
Only respond to questions using information from tool calls.
|
||||
@@ -33,7 +32,9 @@ export default defineEventHandler(async (event) => {
|
||||
question: z.string().describe('the users question')
|
||||
}),
|
||||
execute: async ({ question }) => {
|
||||
return (await autorag.aiSearch({ query: question })).response
|
||||
return (await autorag.aiSearch({
|
||||
query: question
|
||||
})).response
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user