custom prompts

This commit is contained in:
Alex
2023-11-22 23:55:41 +00:00
parent e9a9cbbd07
commit b2770f67a1
6 changed files with 244 additions and 127 deletions

View File

@@ -8,7 +8,7 @@ import { RootState } from '../store';
interface Preference {
apiKey: string;
prompt: { name: string; id: string };
prompt: { name: string; id: string; type: string };
selectedDocs: Doc | null;
sourceDocs: Doc[] | null;
conversations: { name: string; id: string }[] | null;
@@ -16,7 +16,7 @@ interface Preference {
const initialState: Preference = {
apiKey: 'xxx',
prompt: { name: 'default', id: 'default' },
prompt: { name: 'default', id: 'default', type: 'public' },
selectedDocs: {
name: 'default',
language: 'default',