Download frontend/src/core/api/api-client.ts from yonagush/deerflow: direct link, hf CLI and curl.
- Browser
- Download file 343 Bytes
-
https://huggingface.co/spaces/yonagush/deerflow/resolve/main/frontend/src/core/api/api-client.ts
- Command line
-
hf download hf://spaces/yonagush/deerflow/frontend/src/core/api/api-client.ts
-
curl -L -o api-client.ts https://huggingface.co/spaces/yonagush/deerflow/resolve/main/frontend/src/core/api/api-client.ts
343 Bytes
| "use client"; | |
| import { Client as LangGraphClient } from "@langchain/langgraph-sdk/client"; | |
| import { getLangGraphBaseURL } from "../config"; | |
| let _singleton: LangGraphClient | null = null; | |
| export function getAPIClient(): LangGraphClient { | |
| _singleton ??= new LangGraphClient({ | |
| apiUrl: getLangGraphBaseURL(), | |
| }); | |
| return _singleton; | |
| } | |