ai
ai copied to clipboard
Feedback for “Getting Started”
A number of things are missing: We need to indicate that if the developer wants to use UseCompletion, then the api route must set in the /api/completion/route folder if he or she uses useChat then api/chat/route this must be clearly state. Futher, we need clarity between the difference between useCompletion and useChat as on the npm page it is useChat that is used
We need to indicate that if the developer wants to use UseCompletion, then the api route must set in the /api/completion/route folder if he or she uses useChat then api/chat/route this must be clearly state.
The API endpoint can be specified via an api
option, please check the related API references and type definitions (https://sdk.vercel.ai/docs/api-reference/use-chat#use-chat-options).