Spaces:
Configuration error
Configuration error
Download frontend/src/services/chat-service.ts from flyingdarkdev/README: direct link, hf CLI and curl.
- Browser
- Download file 278 Bytes
-
https://huggingface.co/spaces/flyingdarkdev/README/resolve/main/frontend/src/services/chat-service.ts
- Command line
-
hf download hf://spaces/flyingdarkdev/README/frontend/src/services/chat-service.ts
-
curl -L -o chat-service.ts https://huggingface.co/spaces/flyingdarkdev/README/resolve/main/frontend/src/services/chat-service.ts
278 Bytes
| import ActionType from "#/types/action-type"; | |
| export function createChatMessage( | |
| message: string, | |
| image_urls: string[], | |
| timestamp: string, | |
| ) { | |
| const event = { | |
| action: ActionType.MESSAGE, | |
| args: { content: message, image_urls, timestamp }, | |
| }; | |
| return event; | |
| } | |