mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-18 13:30:48 +00:00
22 lines
633 B
TypeScript
22 lines
633 B
TypeScript
import {
|
|
detectZaiEndpoint as detectZaiEndpointCore,
|
|
type ZaiDetectedEndpoint,
|
|
type ZaiEndpointId,
|
|
} from "openclaw/plugin-sdk/zai";
|
|
|
|
type DetectZaiEndpointFn = typeof detectZaiEndpointCore;
|
|
|
|
let detectZaiEndpointImpl: DetectZaiEndpointFn = detectZaiEndpointCore;
|
|
|
|
export function setDetectZaiEndpointForTesting(fn?: DetectZaiEndpointFn): void {
|
|
detectZaiEndpointImpl = fn ?? detectZaiEndpointCore;
|
|
}
|
|
|
|
export async function detectZaiEndpoint(
|
|
...args: Parameters<DetectZaiEndpointFn>
|
|
): ReturnType<DetectZaiEndpointFn> {
|
|
return await detectZaiEndpointImpl(...args);
|
|
}
|
|
|
|
export type { ZaiDetectedEndpoint, ZaiEndpointId };
|