Spaces:
Paused
Paused
Download types/chat.ts from matthoffner/chatbot: direct link, hf CLI and curl.
- Browser
- Download file 455 Bytes
-
https://huggingface.co/spaces/matthoffner/chatbot/resolve/fd7f787b285812b649560130c30cee3feb73f057/types/chat.ts
- Command line
-
hf download hf://spaces/matthoffner/chatbot@fd7f787b285812b649560130c30cee3feb73f057/types/chat.ts
-
curl -L -o chat.ts https://huggingface.co/spaces/matthoffner/chatbot/resolve/fd7f787b285812b649560130c30cee3feb73f057/types/chat.ts
455 Bytes
| import { OpenAIModel } from './openai'; | |
| export interface Message { | |
| role: Role; | |
| content: string; | |
| } | |
| export type Role = 'assistant' | 'user'; | |
| export interface ChatBody { | |
| model: OpenAIModel; | |
| messages: Message[]; | |
| key: string; | |
| prompt: string; | |
| temperature: number; | |
| } | |
| export interface Conversation { | |
| id: string; | |
| name: string; | |
| messages: Message[]; | |
| model: OpenAIModel; | |
| prompt: string; | |
| temperature: number; | |
| folderId: string | null; | |
| } | |