fix: simplify volc catalog model builders · openclaw/openclaw@db7cab4
shakkernerd
·
2026-04-28
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -29,12 +29,7 @@ export const BYTEPLUS_MODEL_CATALOG: ModelDefinitionConfig[] = BYTEPLUS_MANIFEST
|
29 | 29 | export const BYTEPLUS_CODING_MODEL_CATALOG: ModelDefinitionConfig[] = |
30 | 30 | BYTEPLUS_CODING_MANIFEST_PROVIDER.models; |
31 | 31 | |
32 | | -export type BytePlusCatalogEntry = (typeof BYTEPLUS_MODEL_CATALOG)[number]; |
33 | | -export type BytePlusCodingCatalogEntry = (typeof BYTEPLUS_CODING_MODEL_CATALOG)[number]; |
34 | | - |
35 | | -export function buildBytePlusModelDefinition( |
36 | | -entry: BytePlusCatalogEntry | BytePlusCodingCatalogEntry, |
37 | | -): ModelDefinitionConfig { |
| 32 | +export function buildBytePlusModelDefinition(entry: ModelDefinitionConfig): ModelDefinitionConfig { |
38 | 33 | return { |
39 | 34 | ...entry, |
40 | 35 | input: [...entry.input], |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。