Closed AVGVSTVS96 closed 3 months ago
Open the branch in Web Editor • VS Code • Insiders
Open Preview
master
This stack of pull requests is managed by Graphite. Learn more about stacking.
Join @AVGVSTVS96 and the rest of your teammates on Graphite
Add Vercel AI SDK dependencies
Update
ChatUI.tsx
, add adduseChat
hookCreate basic
chatRoute.ts
file in/pages/api/
Use
createOpenAI
to create provider with api key, small updated to optimizeChatUI.tsx
Send modelName to server to dynamically select model
Move model selection logic to
Chat()
component, passselectedModel
andonModelChange
toGptSelect
as props.Use post request to send model name to server with a
useEffect
hook inChat()
.Update
chatRoute.ts
to accept model name, addMessage
type interface