xAI
在 LibreChat 中将 xAI 配置为自定义 endpoint。
xAI 通过 OpenAI 兼容的 API 提供其 Grok 模型,您可以将其作为自定义 endpoint 添加到 LibreChat 中。
获取 API key
从 xAI console 创建一个密钥。将其添加到你的 .env 文件中:
配置
在你的 librechat.yaml 中,将 endpoint 添加到 endpoints.custom 下:
注意事项
titleMethod: "completion"通过聊天补全 (chat completions) 端点生成对话标题,这也是 Grok 所支持的方式。
这篇指南怎么样?