Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: useChat for react #116

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

feature: useChat for react #116

wants to merge 1 commit into from

Conversation

exoticknight
Copy link
Contributor

add

@xsai-ext/react

lib for react hook

@xsai-ext/shared-ui

generel lib for ui frameworks

modify

@xsai/stream-text

  • a new concept called dataChunk which wraps various raw data to specified data structure
  • return a stream named dataChunkStream
  • add a callback named onDataChunk
  • fix toolcall bug by using index of toolcall instead of id of toolcall
  • rename some fileds from snake_case to CamelCase

@xsai/shared-chat

  • new type: StreamTextDataChunk
  • new message part: ReasoningPart
  • new required filed in ToolCall: index

@exoticknight
Copy link
Contributor Author

#111

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant