mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-23 19:08:22 -06: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,
|
|
};
|
|
}
|