mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-25 19:01:14 +00:00
28 lines
1.0 KiB
TypeScript
28 lines
1.0 KiB
TypeScript
import type { FoundryProviderApi } from "./shared.js";
|
|
|
|
type MicrosoftFoundryTestApi = {
|
|
buildFoundryConnectionTest: (params: {
|
|
endpoint: string;
|
|
modelId: string;
|
|
modelNameHint?: string | null;
|
|
api: FoundryProviderApi;
|
|
}) => { url: string; body: Record<string, unknown> };
|
|
isAnthropicFoundryDeployment: (value?: string | null) => boolean;
|
|
isValidTenantIdentifier: (value: string) => boolean;
|
|
resetFoundryRuntimeAuthCaches: () => void;
|
|
shouldTestFoundryTextConnection: (params: {
|
|
modelId: string;
|
|
modelNameHint?: string | null;
|
|
}) => boolean;
|
|
supportsFoundryImageInput: (value?: string | null) => boolean;
|
|
supportsFoundryReasoningContent: (value?: string | null) => boolean;
|
|
supportsFoundryReasoningEffort: (value?: string | null) => boolean;
|
|
};
|
|
|
|
const api = Reflect.get(globalThis, Symbol.for("openclaw.microsoftFoundryTestApi"));
|
|
if (!api) {
|
|
throw new Error("Microsoft Foundry test API is unavailable");
|
|
}
|
|
|
|
export const microsoftFoundryTesting = api as MicrosoftFoundryTestApi;
|