接入步骤
- 在项目环境变量里配置 aliapi.me API Key。
- 创建 ChatOpenAI 实例时传入自定义 baseURL。
- 设置模型名称,例如
gpt-4o-mini、deepseek-chat或qwen-plus。 - RAG 项目中同时配置 Embedding 模型。
- 通过控制台查看 Agent 多轮调用的延迟、Token 和错误。
gpt-4o-mini、deepseek-chat 或 qwen-plus。baseURL: "https://api.aliapi.me/v1"
apiKey: process.env.ALIAPI_KEY
model: "deepseek-chat"