File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11// Token-provider normalization hooks for provider-backed auth choices.
2+ import { normalizeOptionalLowercaseString } from "@openclaw/normalization-core/string-coerce" ;
23import { resolveProviderMatch } from "../plugins/provider-auth-choice-helpers.js" ;
34import { resolvePluginProviders } from "../plugins/provider-auth-choice.runtime.js" ;
4- import { normalizeTokenProviderInput } from "../plugins/provider-auth-input.js" ;
55import type { ProviderAuthKind } from "../plugins/types.js" ;
66import type { ApplyAuthChoiceParams } from "./auth-choice.apply.types.js" ;
77import type { AuthChoice } from "./onboard-types.js" ;
@@ -37,7 +37,7 @@ export function normalizeApiKeyTokenProviderAuthChoice(params: {
3737 if ( ! params . tokenProvider ) {
3838 return params . authChoice ;
3939 }
40- const normalizedTokenProvider = normalizeTokenProviderInput ( params . tokenProvider ) ;
40+ const normalizedTokenProvider = normalizeOptionalLowercaseString ( params . tokenProvider ) ;
4141 if ( ! normalizedTokenProvider ) {
4242 return params . authChoice ;
4343 }
Original file line number Diff line number Diff line change 11// Normalizes provider auth choice metadata from plugin setup surfaces.
2+ import { normalizeProviderId } from "@openclaw/model-catalog-core/provider-id" ;
23import { isRecord as isPlainRecord } from "@openclaw/normalization-core/record-coerce" ;
34import {
45 normalizeLowercaseStringOrEmpty ,
@@ -11,7 +12,6 @@ import {
1112 toAgentEntriesRecord ,
1213} from "../agents/agent-scope-config.js" ;
1314import { normalizeConfiguredProviderCatalogModelId } from "../agents/model-ref-shared.js" ;
14- import { normalizeProviderId } from "../agents/model-selection.js" ;
1515import {
1616 normalizeAgentModelMapForConfig ,
1717 normalizeAgentModelRefForConfig ,
You can’t perform that action at this time.
0 commit comments