mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 01:40:44 +00:00
fix(cycles): bulk extract leaf type surfaces
This commit is contained in:
@@ -13,6 +13,7 @@ import { loadModelCatalog } from "../agents/model-catalog.js";
|
||||
import { modelsAuthLoginCommand, modelsStatusCommand } from "../commands/models.js";
|
||||
import { loadConfig } from "../config/config.js";
|
||||
import { resolveAgentModelPrimaryValue } from "../config/model-input.js";
|
||||
import type { OpenClawConfig } from "../config/types.openclaw.js";
|
||||
import { callGateway, randomIdempotencyKey } from "../gateway/call.js";
|
||||
import { buildGatewayConnectionDetailsWithResolvers } from "../gateway/connection-details.js";
|
||||
import { isLoopbackHost } from "../gateway/net.js";
|
||||
@@ -395,17 +396,14 @@ function resolveSelectedProviderFromModelRef(modelRef: string | undefined): stri
|
||||
return resolveModelRefOverride(modelRef).provider;
|
||||
}
|
||||
|
||||
function getAuthProfileIdsForProvider(
|
||||
cfg: ReturnType<typeof loadConfig>,
|
||||
providerId: string,
|
||||
): string[] {
|
||||
function getAuthProfileIdsForProvider(cfg: OpenClawConfig, providerId: string): string[] {
|
||||
const agentDir = resolveAgentDir(cfg, resolveDefaultAgentId(cfg));
|
||||
const store = loadAuthProfileStoreForRuntime(agentDir);
|
||||
return listProfilesForProvider(store, providerId);
|
||||
}
|
||||
|
||||
function providerHasGenericConfig(params: {
|
||||
cfg: ReturnType<typeof loadConfig>;
|
||||
cfg: OpenClawConfig;
|
||||
providerId: string;
|
||||
envVars?: string[];
|
||||
}): boolean {
|
||||
|
||||
Reference in New Issue
Block a user