mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-08 15:51:06 +00:00
12 lines
367 B
TypeScript
12 lines
367 B
TypeScript
import type { ModelProviderConfig } from "openclaw/plugin-sdk/provider-model-shared";
|
|
import { discoverVeniceModels, VENICE_BASE_URL } from "./api.js";
|
|
|
|
export async function buildVeniceProvider(): Promise<ModelProviderConfig> {
|
|
const models = await discoverVeniceModels();
|
|
return {
|
|
baseUrl: VENICE_BASE_URL,
|
|
api: "openai-completions",
|
|
models,
|
|
};
|
|
}
|