UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

38 lines (37 loc) • 1.32 kB
import { t as defineSingleProviderPluginEntry } from "../../provider-entry-BhS0gICf.js"; import { n as COHERE_DEFAULT_MODEL_REF, r as applyCohereConfig } from "../../onboard-BGhbryH9.js"; import { t as buildCohereProvider } from "../../provider-catalog-BuMH4kaq.js"; import { t as createCohereCompletionsWrapper } from "../../stream-DNg8Hts9.js"; //#region extensions/cohere/index.ts var cohere_default = defineSingleProviderPluginEntry({ id: "cohere", name: "Cohere Provider", description: "Cohere provider plugin", provider: { label: "Cohere", docsPath: "/providers/cohere", auth: [{ methodId: "api-key", label: "Cohere API key", hint: "OpenAI-compatible inference", optionKey: "cohereApiKey", flagName: "--cohere-api-key", envVar: "COHERE_API_KEY", promptMessage: "Enter Cohere API key", defaultModel: COHERE_DEFAULT_MODEL_REF, applyConfig: (cfg) => applyCohereConfig(cfg), wizard: { groupLabel: "Cohere", groupHint: "OpenAI-compatible inference" } }], catalog: { buildProvider: buildCohereProvider, buildStaticProvider: buildCohereProvider }, wrapStreamFn: (ctx) => createCohereCompletionsWrapper(ctx.streamFn), wrapSimpleCompletionStreamFn: (ctx) => createCohereCompletionsWrapper(ctx.streamFn) } }); //#endregion export { cohere_default as default };