@botbotgo/model
v1.0.13
Published
Agent LLM: multi-provider, multi-model, simple chat/image API. Consumes agent.yaml llm section.
Readme
@botbotgo/model
介绍
@botbotgo/model 负责加载与注册 LLM / Embedding / Vision 模型配置,供智能体运行时统一调用。
如何使用
cd framework/model
npm install
npm run buildimport { createAgentModel } from "@botbotgo/model";
await createAgentModel({ configPath: "./config/model.yaml" });如何设置
配置文件:config/model.yaml
核心配置块:
spec.llmspec.embedspec.vlm(可选)
每类模型通过 default 指定默认别名。
暴露 API
createAgentModel(options)CreateAgentModelOptionscreateAgentModelRegistry(options)CreateAgentModelRegistryOptionsCreateAgentModelChatOptionsAgentModel- CLI:
agent-model
