Spaces:
Runtime error
Runtime error
File size: 606 Bytes
3b6afc0 |
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 |
import { atom } from 'recoil';
// 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({
key: 'submission',
default: null,
});
const isSubmitting = atom({
key: 'isSubmitting',
default: false,
});
export default {
submission,
isSubmitting,
};
|