feat(styling): added rey effects for the UI as decorative elements

This commit is contained in:
Anirban Kar
2024-11-14 17:50:00 +05:30
parent a081f8bec5
commit 7984a07b16
6 changed files with 305 additions and 14 deletions

View File

@@ -92,7 +92,7 @@ export const ChatImpl = memo(({ initialMessages, storeMessageHistory }: ChatProp
const { messages, isLoading, input, handleInputChange, setInput, stop, append } = useChat({
api: '/api/chat',
body: {
apiKeys
apiKeys,
},
onError: (error) => {
logger.error('Request failed\n\n', error);
@@ -263,14 +263,14 @@ export const ChatImpl = memo(({ initialMessages, storeMessageHistory }: ChatProp
})}
enhancePrompt={() => {
enhancePrompt(
input,
input,
(input) => {
setInput(input);
scrollTextArea();
},
model,
provider,
apiKeys
apiKeys,
);
}}
/>