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