Download frontend/src/core/memory/api.ts from yonagush/deerflow: direct link, hf CLI and curl.
- Browser
- Download file 263 Bytes
-
https://huggingface.co/spaces/yonagush/deerflow/resolve/main/frontend/src/core/memory/api.ts
- Command line
-
hf download hf://spaces/yonagush/deerflow/frontend/src/core/memory/api.ts
-
curl -L -o api.ts https://huggingface.co/spaces/yonagush/deerflow/resolve/main/frontend/src/core/memory/api.ts
263 Bytes
| import { getBackendBaseURL } from "../config"; | |
| import type { UserMemory } from "./types"; | |
| export async function loadMemory() { | |
| const memory = await fetch(`${getBackendBaseURL()}/api/memory`); | |
| const json = await memory.json(); | |
| return json as UserMemory; | |
| } | |