Huggingface
在 LibreChat 中将 Huggingface 配置为自定义 endpoint。
Huggingface 通过 OpenAI 兼容的推理 API 提供托管模型,你可以将其作为自定义 endpoint 添加到 LibreChat 中。
获取 API key
在 huggingface.co/settings/tokens 创建一个 token。将其添加到你的 .env 文件中:
配置
在你的 librechat.yaml 中,将 endpoint 添加到 endpoints.custom 下:
上述模型列表最后更新于 2024 年 5 月 9 日。
注意事项
- 所列出的模型均为免费但受速率限制,且在免费层级下回答可能非常简短。某些模型的效果优于其他模型。
- 不支持获取模型列表,因此请自行设置
default数组。 dropParams: ["top_p"]是必需的。如果没有它,请求将会失败,因为 Huggingface 会拒绝top_p参数。请参阅dropParams。
这篇指南怎么样?