File size: 681 Bytes
9705b6c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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,
};