mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 17:14:33 +00:00
fix(models): type fallback key helper
This commit is contained in:
@@ -93,7 +93,7 @@ export function resolveModelTarget(params: { raw: string; cfg: OpenClawConfig })
|
|||||||
|
|
||||||
export function resolveModelKeysFromEntries(params: {
|
export function resolveModelKeysFromEntries(params: {
|
||||||
cfg: OpenClawConfig;
|
cfg: OpenClawConfig;
|
||||||
entries: readonly unknown[];
|
entries: readonly string[];
|
||||||
}): string[] {
|
}): string[] {
|
||||||
const aliasIndex = buildModelAliasIndex({
|
const aliasIndex = buildModelAliasIndex({
|
||||||
cfg: params.cfg,
|
cfg: params.cfg,
|
||||||
@@ -102,7 +102,7 @@ export function resolveModelKeysFromEntries(params: {
|
|||||||
return params.entries
|
return params.entries
|
||||||
.map((entry) =>
|
.map((entry) =>
|
||||||
resolveModelRefFromString({
|
resolveModelRefFromString({
|
||||||
raw: String(entry ?? ""),
|
raw: entry,
|
||||||
defaultProvider: DEFAULT_PROVIDER,
|
defaultProvider: DEFAULT_PROVIDER,
|
||||||
aliasIndex,
|
aliasIndex,
|
||||||
}),
|
}),
|
||||||
|
|||||||
Reference in New Issue
Block a user