Skip to content

Improve clarity of useChat hook and pipelines #1

Description

@nordwestt

It's a bit difficult to comprehend what's going on in the useChat hook, where objects are constructed and deconstructed multiple times. It could do with a bit of simplification. Perhaps passing a ChatMessage as the newMessage and then a ChatMesage[] as the history to the sendChatMessage. Currently it's taking a string, which is limited considering new capabilities of AI such as documents and images processing

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions