mirror of
https://gitee.com/wanwujie/deer-flow
synced 2026-04-16 11:24:45 +08:00
feat: support NEXT_PUBLIC_LANGGRAPH_BASE_URL
This commit is contained in:
@@ -2,12 +2,12 @@
|
||||
|
||||
import { Client as LangGraphClient } from "@langchain/langgraph-sdk/client";
|
||||
|
||||
import { getBackendBaseURL } from "../config";
|
||||
import { getLangGraphBaseURL } from "../config";
|
||||
|
||||
let _singleton: LangGraphClient | null = null;
|
||||
export function getAPIClient(): LangGraphClient {
|
||||
_singleton ??= new LangGraphClient({
|
||||
apiUrl: getBackendBaseURL(),
|
||||
apiUrl: getLangGraphBaseURL(),
|
||||
});
|
||||
return _singleton;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user