openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
19 lines (18 loc) • 728 B
JavaScript
import { b as resolveProviderEntryApiKeyProfileReference } from "./model-auth-provider-config-C_kr_q2g.js";
import "./model-auth-C48_DZ-I.js";
//#region src/gateway/server-methods/models-auth-status-config.ts
function resolveConfigBoundProfileIds(cfg, store, authAliasLookupParams) {
const profileIds = /* @__PURE__ */ new Set();
for (const provider of Object.keys(cfg.models?.providers ?? {})) {
const reference = resolveProviderEntryApiKeyProfileReference({
cfg,
authAliasLookupParams,
provider,
store
});
if (reference.kind === "profile" || reference.kind === "profile-incompatible") profileIds.add(reference.profileId);
}
return profileIds;
}
//#endregion
export { resolveConfigBoundProfileIds as t };