From 139bea4e1071fd3aa2b7d8623455d3c8acb086f2 Mon Sep 17 00:00:00 2001
From: lvjiajjjlzy <103650510+lvjiajjjlzy@users.noreply.github.com>
Date: Sat, 11 May 2024 17:21:59 +0800
Subject: [PATCH] en faq 502 and deepseek and model list (#81)
* moonshot
* moonshot
* Update model-providers.md
* ADD FAQ #19 #20
* faq en
* Update llms-use-faq.md
* faq 502
* faq
* faq
* faq
* faq
* faq
* faq
* Update model-providers.md
* Update model-providers.md
* Update model-providers.md
* Update model-providers.md
---
en/getting-started/readme/model-providers.md | 2 +-
.../creating-dify-apps/llms-use-faq.md | 18 ++++++++++++++++++
.../getting-started/readme/model-providers.md | 2 +-
zh_CN/learn-more/faq/install-faq.md | 3 ++-
4 files changed, 22 insertions(+), 3 deletions(-)
diff --git a/en/getting-started/readme/model-providers.md b/en/getting-started/readme/model-providers.md
index c829cef..e0d6dec 100644
--- a/en/getting-started/readme/model-providers.md
+++ b/en/getting-started/readme/model-providers.md
@@ -2,7 +2,7 @@
Dify supports the below model providers out-of-box:
-
| Provider | LLM | Embedding | Rerank |
|---|
| OpenAI | ✔️(🛠️)(👓) | ✔️ | |
| Anthropic | ✔️ | | |
| Azure OpenAI | ✔️(🛠️)(👓) | ✔️ | |
| Google | ✔️(👓) | | |
| Cohere | ✔️ | ✔️ | ✔️ |
| Bedrock | ✔️ | | |
| together.ai | ✔️ | | |
| Ollama | ✔️ | ✔️ | |
| Replicate | ✔️ | ✔️ | |
| Hugging Face | ✔️ | ✔️ | |
| Zhipu AI | ✔️(🛠️)(👓) | ✔️ | |
| Baichuan | ✔️ | ✔️ | |
| Spark | ✔️ | | |
| Minimax | ✔️(🛠️) | ✔️ | |
| Tongyi | ✔️ | | |
| Wenxin | ✔️ | | |
| Moonshot AI | ✔️(🛠️) | | |
| Jina | | ✔️ | ✔️ |
| ChatGLM | ✔️(🛠️) | | |
| Xinference | ✔️(🛠️)(👓) | ✔️ | ✔️ |
| OpenLLM | ✔️ | ✔️ | |
| LocalAI | ✔️ | ✔️ | |
| OpenAI API-Compatible | ✔️ | ✔️ | |
+| Provider | LLM | Embedding | Rerank |
|---|
| OpenAI | ✔️(🛠️)(👓) | ✔️ | |
| Anthropic | ✔️ | | |
| Azure OpenAI | ✔️(🛠️)(👓) | ✔️ | |
| Google | ✔️(👓) | | |
| Cohere | ✔️ | ✔️ | ✔️ |
| Bedrock | ✔️ | | |
| together.ai | ✔️ | | |
| Ollama | ✔️ | ✔️ | |
| Replicate | ✔️ | ✔️ | |
| Hugging Face | ✔️ | ✔️ | |
| Zhipu AI | ✔️(🛠️)(👓) | ✔️ | |
| Baichuan | ✔️ | ✔️ | |
| Spark | ✔️ | | |
| Minimax | ✔️(🛠️) | ✔️ | |
| Tongyi | ✔️ | | |
| Wenxin | ✔️ | | |
| Moonshot AI | ✔️(🛠️) | | |
| deepseek | ✔️(🛠️) | | |
| Jina | | ✔️ | ✔️ |
| ChatGLM | ✔️(🛠️) | | |
| Xinference | ✔️(🛠️)(👓) | ✔️ | ✔️ |
| OpenLLM | ✔️ | ✔️ | |
| LocalAI | ✔️ | ✔️ | |
| OpenAI API-Compatible | ✔️ | ✔️ | |
where (🛠️) ︎ denotes Function Calling and (👓) denotes support for vision.
diff --git a/en/user-guide/creating-dify-apps/llms-use-faq.md b/en/user-guide/creating-dify-apps/llms-use-faq.md
index f4586ab..5851cc7 100644
--- a/en/user-guide/creating-dify-apps/llms-use-faq.md
+++ b/en/user-guide/creating-dify-apps/llms-use-faq.md
@@ -121,3 +121,21 @@ Dify supports using the listed providers as an Embedding model provider, simply
### 19. How can I set my own created app as an app template?
The ability to set your own created app as a template is currently not supported. The existing templates are provided by Dify officially for cloud version users' reference. If you are using the cloud version, you can add apps to your workspace or customize them to make your own after modifications. If you are using the community version and need to create more app templates for your team, you may consult our business team to obtain paid technical support: [business@dify.ai](mailto:business@dify.ai)
+
+
+### 20.502 Bad Gateway
+
+This is caused by Nginx forwarding the service to the wrong location. First, make sure the container is running, then run the following command with root privileges:
+```
+docker ps -q | xargs -n 1 docker inspect --format '{{ .Name }}: {{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}'
+```
+Find these two lines in the output:
+```
+/docker-web-1: 172.19.0.5
+/docker-api-1: 172.19.0.7
+```
+Remember the IP addresses at the end. Then, open the location where you stored the dify source code, open dify/docker/nginx/conf.d, replace http://api:5001 with http://172.19.0.7:5001, and replace http://web:3000 with http://172.19.0.5:3000. Afterward, restart the Nginx container or reload the configuration.
+These IP addresses are ***exemplary***, you must execute the command to obtain your own IP address, do not fill it in directly.
+You may need to reconfigure based on the IP when restarting related containers.
+
+
diff --git a/zh_CN/getting-started/readme/model-providers.md b/zh_CN/getting-started/readme/model-providers.md
index 73378cc..009eb6d 100644
--- a/zh_CN/getting-started/readme/model-providers.md
+++ b/zh_CN/getting-started/readme/model-providers.md
@@ -2,7 +2,7 @@
Dify 为以下模型提供商提供原生支持:
-| Provider | LLM | Embedding | Rerank |
|---|
| OpenAI | ✔️(🛠️)(👓) | ✔️ | |
| Anthropic | ✔️ | | |
| Azure OpenAI | ✔️(🛠️)(👓) | ✔️ | |
| Google | ✔️(👓) | | |
| Cohere | ✔️ | ✔️ | ✔️ |
| Bedrock | ✔️ | | |
| together.ai | ✔️ | | |
| Ollama | ✔️ | ✔️ | |
| Replicate | ✔️ | ✔️ | |
| Hugging Face | ✔️ | ✔️ | |
| 智谱 | ✔️(🛠️)(👓) | ✔️ | |
| 百川 | ✔️ | ✔️ | |
| 星火 | ✔️ | | |
| Minimax | ✔️(🛠️) | ✔️ | |
| 通义千问 | ✔️ | | |
| 文心一言 | ✔️ | | |
| 月之暗面 | ✔️(🛠️) | | |
| Jina | | ✔️ | ✔️ |
| ChatGLM | ✔️(🛠️) | | |
| Xinference | ✔️(🛠️)(👓) | ✔️ | ✔️ |
| OpenLLM | ✔️ | ✔️ | |
| LocalAI | ✔️ | ✔️ | |
| OpenAI API-Compatible | ✔️ | ✔️ | |
+| Provider | LLM | Embedding | Rerank |
|---|
| OpenAI | ✔️(🛠️)(👓) | ✔️ | |
| Anthropic | ✔️ | | |
| Azure OpenAI | ✔️(🛠️)(👓) | ✔️ | |
| Google | ✔️(👓) | | |
| Cohere | ✔️ | ✔️ | ✔️ |
| Bedrock | ✔️ | | |
| together.ai | ✔️ | | |
| Ollama | ✔️ | ✔️ | |
| Replicate | ✔️ | ✔️ | |
| Hugging Face | ✔️ | ✔️ | |
| 智谱 | ✔️(🛠️)(👓) | ✔️ | |
| 百川 | ✔️ | ✔️ | |
| 星火 | ✔️ | | |
| Minimax | ✔️(🛠️) | ✔️ | |
| 通义千问 | ✔️ | | |
| 文心一言 | ✔️ | | |
| 月之暗面 | ✔️(🛠️) | | |
| deepseek | ✔️(🛠️) | | |
| Jina | | ✔️ | ✔️ |
| ChatGLM | ✔️(🛠️) | | |
| Xinference | ✔️(🛠️)(👓) | ✔️ | ✔️ |
| OpenLLM | ✔️ | ✔️ | |
| LocalAI | ✔️ | ✔️ | |
| OpenAI API-Compatible | ✔️ | ✔️ | |
其中 (🛠️) 代表支持 Function Calling,(👓) 代表视觉能力。
diff --git a/zh_CN/learn-more/faq/install-faq.md b/zh_CN/learn-more/faq/install-faq.md
index 668205e..16b6b00 100644
--- a/zh_CN/learn-more/faq/install-faq.md
+++ b/zh_CN/learn-more/faq/install-faq.md
@@ -204,7 +204,8 @@ docker ps -q | xargs -n 1 docker inspect --format '{{ .Name }}: {{range .Network
/docker-web-1: 172.19.0.5
/docker-api-1: 172.19.0.7
```
-记住后面的IP地址。然后打开你存放dify源代码的地方,打开`dify/docker/nginx/conf.d`,将`http://api:5001`替换为`http://172.19.0.7:5001`,将`http://web:3000`替换为`http://172.19.0.5:3000`,随后重启Nginx容器或者重载配置。
+记住后面的IP地址。然后打开你存放dify源代码的地方,打开`dify/docker/nginx/conf.d`,将`http://api:5001`替换为`http://172.19.0.7:5001`,将`http://web:3000`替换为`http://172.19.0.5:3000`,随后重启Nginx容器或者重载配置。
+这些IP地址是***示例性*** 的,你必须执行命令获取你自己的IP地址,不要直接填入。
你可能在重新启动相关容器时需要再次根据IP进行配置。
#### 安全性问题