Skip to content

Commit

Permalink
Add TODO comments for knowledgebase access and input handling before …
Browse files Browse the repository at this point in the history
…form submission
  • Loading branch information
athrael-soju committed Dec 19, 2024
1 parent 8049c1c commit 528d1c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/(chat)/api/chat/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export async function POST(request: Request) {
if (!model) {
return new Response('Model not found', { status: 404 });
}

// TODO: Access knowledgebase here.
const coreMessages = convertToCoreMessages(messages);
const userMessage = getMostRecentUserMessage(coreMessages);

Expand Down
2 changes: 1 addition & 1 deletion components/multimodal-input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ function PureMultimodalInput({

const submitForm = useCallback(() => {
window.history.replaceState({}, '', `/chat/${chatId}`);
// TODO: input before submit

handleSubmit(undefined, {
experimental_attachments: attachments,
});
Expand Down

0 comments on commit 528d1c0

Please sign in to comment.