You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
704 B
TypeScript
25 lines
704 B
TypeScript
import type { ModelProviderConfig } from "openclaw/plugin-sdk/provider-model-shared";
|
|
import {
|
|
buildBytePlusModelDefinition,
|
|
BYTEPLUS_BASE_URL,
|
|
BYTEPLUS_CODING_BASE_URL,
|
|
BYTEPLUS_CODING_MODEL_CATALOG,
|
|
BYTEPLUS_MODEL_CATALOG,
|
|
} from "./api.js";
|
|
|
|
export function buildBytePlusProvider(): ModelProviderConfig {
|
|
return {
|
|
baseUrl: BYTEPLUS_BASE_URL,
|
|
api: "openai-completions",
|
|
models: BYTEPLUS_MODEL_CATALOG.map(buildBytePlusModelDefinition),
|
|
};
|
|
}
|
|
|
|
export function buildBytePlusCodingProvider(): ModelProviderConfig {
|
|
return {
|
|
baseUrl: BYTEPLUS_CODING_BASE_URL,
|
|
api: "openai-completions",
|
|
models: BYTEPLUS_CODING_MODEL_CATALOG.map(buildBytePlusModelDefinition),
|
|
};
|
|
}
|