mirror of
https://github.com/arc53/DocsGPT.git
synced 2025-11-29 08:33:20 +00:00
chore: updated Query and WidgetProps interface with source property
This commit is contained in:
@@ -1,16 +1,21 @@
|
||||
export type MESSAGE_TYPE = 'QUESTION' | 'ANSWER' | 'ERROR';
|
||||
|
||||
export type Status = 'idle' | 'loading' | 'failed';
|
||||
|
||||
export type FEEDBACK = 'LIKE' | 'DISLIKE';
|
||||
|
||||
export type THEME = 'light' | 'dark';
|
||||
|
||||
export interface Query {
|
||||
prompt: string;
|
||||
response?: string;
|
||||
feedback?: FEEDBACK;
|
||||
error?: string;
|
||||
sources?: { title: string; text: string }[];
|
||||
sources?: { title: string; text: string, source:string }[];
|
||||
conversationId?: string | null;
|
||||
title?: string | null;
|
||||
}
|
||||
|
||||
export interface WidgetProps {
|
||||
apiHost?: string;
|
||||
apiKey?: string;
|
||||
@@ -24,4 +29,5 @@ export interface WidgetProps {
|
||||
buttonIcon?:string;
|
||||
buttonBg?:string;
|
||||
collectFeedback?:boolean
|
||||
showSources?: boolean
|
||||
}
|
||||
Reference in New Issue
Block a user