diff --git a/app/actions.tsx b/app/actions.tsx index f438d4c8..f044132a 100644 --- a/app/actions.tsx +++ b/app/actions.tsx @@ -54,7 +54,8 @@ async function submit(formData?: FormData, skip?: boolean) { const userInput = skip ? `{"action": "skip"}` - : (formData?.get('input') as string); + : ((formData?.get('related_query') as string) || + (formData?.get('input') as string)) if (userInput.toLowerCase().trim() === 'what is a planet computer?' || userInput.toLowerCase().trim() === 'what is qcx-terra?') { const definition = userInput.toLowerCase().trim() === 'what is a planet computer?' diff --git a/components/chat-panel.tsx b/components/chat-panel.tsx index b3097358..b0bf2166 100644 --- a/components/chat-panel.tsx +++ b/components/chat-panel.tsx @@ -246,6 +246,7 @@ export const ChatPanel = forwardRef(({ messages, i isMobile ? 'right-1' : 'right-2' )} disabled={input.length === 0 && !selectedFile} + aria-label="Send message" > diff --git a/components/message.tsx b/components/message.tsx index e965202c..20184bd0 100644 --- a/components/message.tsx +++ b/components/message.tsx @@ -21,7 +21,7 @@ export function BotMessage({ content }: { content: StreamableValue }) { {processedData}