mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 08:50:43 +00:00
fix: simplify volc catalog model builders
This commit is contained in:
@@ -29,12 +29,7 @@ export const BYTEPLUS_MODEL_CATALOG: ModelDefinitionConfig[] = BYTEPLUS_MANIFEST
|
||||
export const BYTEPLUS_CODING_MODEL_CATALOG: ModelDefinitionConfig[] =
|
||||
BYTEPLUS_CODING_MANIFEST_PROVIDER.models;
|
||||
|
||||
export type BytePlusCatalogEntry = (typeof BYTEPLUS_MODEL_CATALOG)[number];
|
||||
export type BytePlusCodingCatalogEntry = (typeof BYTEPLUS_CODING_MODEL_CATALOG)[number];
|
||||
|
||||
export function buildBytePlusModelDefinition(
|
||||
entry: BytePlusCatalogEntry | BytePlusCodingCatalogEntry,
|
||||
): ModelDefinitionConfig {
|
||||
export function buildBytePlusModelDefinition(entry: ModelDefinitionConfig): ModelDefinitionConfig {
|
||||
return {
|
||||
...entry,
|
||||
input: [...entry.input],
|
||||
|
||||
@@ -29,12 +29,7 @@ export const DOUBAO_MODEL_CATALOG: ModelDefinitionConfig[] = DOUBAO_MANIFEST_PRO
|
||||
export const DOUBAO_CODING_MODEL_CATALOG: ModelDefinitionConfig[] =
|
||||
DOUBAO_CODING_MANIFEST_PROVIDER.models;
|
||||
|
||||
export type DoubaoCatalogEntry = (typeof DOUBAO_MODEL_CATALOG)[number];
|
||||
export type DoubaoCodingCatalogEntry = (typeof DOUBAO_CODING_MODEL_CATALOG)[number];
|
||||
|
||||
export function buildDoubaoModelDefinition(
|
||||
entry: DoubaoCatalogEntry | DoubaoCodingCatalogEntry,
|
||||
): ModelDefinitionConfig {
|
||||
export function buildDoubaoModelDefinition(entry: ModelDefinitionConfig): ModelDefinitionConfig {
|
||||
return {
|
||||
...entry,
|
||||
input: [...entry.input],
|
||||
|
||||
Reference in New Issue
Block a user