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