mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-18 16:31:44 +00:00
16 lines
485 B
TypeScript
16 lines
485 B
TypeScript
// Synthetic provider module implements model/runtime integration.
|
|
import type { ModelProviderConfig } from "openclaw/plugin-sdk/provider-model-shared";
|
|
import {
|
|
buildSyntheticModelDefinition,
|
|
SYNTHETIC_BASE_URL,
|
|
SYNTHETIC_MODEL_CATALOG,
|
|
} from "./models.js";
|
|
|
|
export function buildSyntheticProvider(): ModelProviderConfig {
|
|
return {
|
|
baseUrl: SYNTHETIC_BASE_URL,
|
|
api: "anthropic-messages",
|
|
models: SYNTHETIC_MODEL_CATALOG.map(buildSyntheticModelDefinition),
|
|
};
|
|
}
|