ask-lightcast-chat
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

Ask Lightcast Chat Package

Description

This project represents the react package for interacting with the the Ask Lightcast LLMs.

Installation

Instructions will be added for installing this package from a private GitLab repository...

Usage

Basic usage:

import React from 'react';
import Chat from 'whatever-our-url-is'

const Page: FC = () => {
    const { conversationIds, userJwt } = useGetUserProfile();
    const [currentConversationId, setCurrConversationId] = React.useState<string | undefined>(undefined);

    return (
      <Chat
        conversationId={conversationId}
        onNewChatCreation={async (id) => {
          await addConversationToProfile(id)
          setCurrConversationId(id);
        }}
        jwt={userJwt}
        validModules={['snowflake', 'knowledge_base']}
      />)
}

Development

Notes on development

Support

Provide a slack channel for this (e.g. #ask-lightcast-support)

Authors and acknowledgment

Show your appreciation to those who have contributed to the project.

Readme

Keywords

none

Package Sidebar

Install

npm i ask-lightcast-chat

Weekly Downloads

5

Version

1.0.4

License

UNLICENSED

Unpacked Size

5.04 MB

Total Files

39

Last publish

Collaborators

  • ask-lightcast-devs