Patch Changes
- 78477d3: - Create
/react
sub-package.- Create
import { useChat, useCompletion } from 'ai-connector/react'
and mark React as an optional peer dependency so we can add more framework support in the future. - Also renamed
set
tosetMessages
andsetCompletion
to unify the API naming as we havesetInput
too. - Added an
sendExtraMessageFields
field touseChat
that defaults tofalse
, to prevent OpenAI errors whenid
is not filtered out.
- Create
- c4c1be3: useCompletion.handleSubmit does not clear the input anymore
- 7de2185: create /react export