feat: replace dev domain (#11)
* Update developing-with-apis.md * Update developing-with-apis.mdpull/12/head
parent
5e16060687
commit
555382ce4b
|
|
@ -34,7 +34,7 @@ You can find the API documentation and example requests for this application in
|
|||
For example, here is a sample call an API for text generation:
|
||||
|
||||
```
|
||||
curl --location --request POST 'https://api.dify.dev/v1/completion-messages' \
|
||||
curl --location --request POST 'https://api.dify.ai/v1/completion-messages' \
|
||||
--header 'Authorization: Bearer ENTER-YOUR-SECRET-KEY' \
|
||||
--header 'Content-Type: application/json' \
|
||||
--data-raw '{
|
||||
|
|
@ -56,7 +56,7 @@ You can find the API documentation and example requests for this application in
|
|||
For example, here is a sample call an API for chat-messages:
|
||||
|
||||
```
|
||||
curl --location --request POST 'https://api.dify.dev/v1/chat-messages' \
|
||||
curl --location --request POST 'https://api.dify.ai/v1/chat-messages' \
|
||||
--header 'Authorization: Bearer ENTER-YOUR-SECRET-KEY' \
|
||||
--header 'Content-Type: application/json' \
|
||||
--data-raw '{
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ Dify 基于“**后端即服务**”理念为所有应用提供了 API,为 AI
|
|||
例如,创建文本补全信息的 API 的调用示例:
|
||||
|
||||
```
|
||||
curl --location --request POST 'https://api.dify.dev/v1/completion-messages' \
|
||||
curl --location --request POST 'https://api.dify.ai/v1/completion-messages' \
|
||||
--header 'Authorization: Bearer ENTER-YOUR-SECRET-KEY' \
|
||||
--header 'Content-Type: application/json' \
|
||||
--data-raw '{
|
||||
|
|
@ -55,7 +55,7 @@ curl --location --request POST 'https://api.dify.dev/v1/completion-messages' \
|
|||
例如,发送对话信息的 API的调用示例:
|
||||
|
||||
```
|
||||
curl --location --request POST 'https://api.dify.dev/v1/chat-messages' \
|
||||
curl --location --request POST 'https://api.dify.ai/v1/chat-messages' \
|
||||
--header 'Authorization: Bearer ENTER-YOUR-SECRET-KEY' \
|
||||
--header 'Content-Type: application/json' \
|
||||
--data-raw '{
|
||||
|
|
|
|||
Loading…
Reference in New Issue