Download src/services/api/chatService.ts from sifars/keepme: direct link, hf CLI and curl.
- Browser
- Download file 519 Bytes
-
https://huggingface.co/spaces/sifars/keepme/resolve/main/src/services/api/chatService.ts
- Command line
-
hf download hf://spaces/sifars/keepme/src/services/api/chatService.ts
-
curl -L -o chatService.ts https://huggingface.co/spaces/sifars/keepme/resolve/main/src/services/api/chatService.ts
519 Bytes
| import axiosClient from "./axiosClient"; | |
| import { ICreateConnectionRequest } from "../../interfaces/conversation"; | |
| import { ICreateWebrtcConnectionRequest } from "../../interfaces/webrtc"; | |
| export const createConversation = async (data: ICreateConnectionRequest) => { | |
| return await axiosClient.post("/conversations", data); | |
| }; | |
| export const createConnection = async ( | |
| conversationId: string, | |
| data: ICreateWebrtcConnectionRequest | |
| ) => { | |
| return await axiosClient.post(`/conversations/${conversationId}`, data); | |
| }; | |