1.0.4 • Published 1 year ago
ask-lightcast-chat v1.0.4
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.