chat / client /src /store /submission.ts
helloya20's picture
Upload 2345 files
f0743f4 verified
import { atom } from 'recoil';
import { TSubmission } from 'librechat-data-provider';
// current submission
// submit any new value to this state will cause new message to be send.
// set to null to give up any submission
// {
// conversation, // target submission, must have: model, chatGptLabel, promptPrefix
// messages, // old messages
// message, // request message
// initialResponse, // response message
// isRegenerate=false, // isRegenerate?
// }
const submission = atom<TSubmission | null>({
key: 'submission',
default: null,
});
const isSubmitting = atom({
key: 'isSubmitting',
default: false,
});
export default {
submission,
isSubmitting,
};