dify-docs/zh_CN/guides/model-configuration/replicate.md

17 lines
1.1 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# 接入 Replicate 上的开源模型
Dify 支持接入 Replicate 上的 [Language models](https://replicate.com/collections/language-models) 和 [Embedding models](https://replicate.com/collections/embedding-models)。Language models 对应 Dify 的推理模型Embedding models 对应 Dify 的 Embedding 模型。
具体步骤如下:
1. 你需要有 Replicate 的账号([注册地址](https://replicate.com/signin?next=/docs))。
2. 获取 API Key([获取地址](https://replicate.com/account/api-tokens))。
3. 挑选模型。在 [Language models](https://replicate.com/collections/language-models) 和 [Embedding models](https://replicate.com/collections/embedding-models) 下挑选模型。
4. 在 Dify 的 `设置 > 模型供应商 > Replicate` 中添加模型。
<figure><img src="../../.gitbook/assets/image (4) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1).png" alt=""><figcaption></figcaption></figure>
API key 为第 2 步中设置的 API Key。Model Name 和 Model Version 可以在模型详情页中找到:
<figure><img src="../../.gitbook/assets/image (5) (1) (1) (1) (1) (1) (1).png" alt=""><figcaption></figcaption></figure>