Download web/src/pages/chat/interface.ts from Starowo/ragflow: direct link, hf CLI and curl.
- Browser
- Download file 784 Bytes
-
https://huggingface.co/spaces/Starowo/ragflow/resolve/main/web/src/pages/chat/interface.ts
- Command line
-
hf download hf://spaces/Starowo/ragflow/web/src/pages/chat/interface.ts
-
curl -L -o interface.ts https://huggingface.co/spaces/Starowo/ragflow/resolve/main/web/src/pages/chat/interface.ts
784 Bytes
| import { IConversation, IReference, Message } from '@/interfaces/database/chat'; | |
| import { FormInstance } from 'antd'; | |
| export interface ISegmentedContentProps { | |
| show: boolean; | |
| form: FormInstance; | |
| setHasError: (hasError: boolean) => void; | |
| } | |
| export interface IVariable { | |
| temperature: number; | |
| top_p: number; | |
| frequency_penalty: number; | |
| presence_penalty: number; | |
| max_tokens: number; | |
| } | |
| export interface VariableTableDataType { | |
| key: string; | |
| variable: string; | |
| optional: boolean; | |
| } | |
| export type IPromptConfigParameters = Omit<VariableTableDataType, 'variable'>; | |
| export interface IMessage extends Message { | |
| id: string; | |
| reference?: IReference; // the latest news has reference | |
| } | |
| export interface IClientConversation extends IConversation { | |
| message: IMessage[]; | |
| } | |