From 1a9c0f461ee769b93850d11ddc97bd9dbba0c0ff Mon Sep 17 00:00:00 2001 From: Aiden Dai Date: Tue, 11 Mar 2025 10:14:06 +0800 Subject: [PATCH] Update usage guide for deepseek-r1 --- docs/Usage.md | 20 ++++++++++++++++++++ docs/Usage_CN.md | 20 ++++++++++++++++++++ 2 files changed, 40 insertions(+) diff --git a/docs/Usage.md b/docs/Usage.md index 79c8bcb..822a870 100644 --- a/docs/Usage.md +++ b/docs/Usage.md @@ -331,6 +331,8 @@ You can try it with different questions, such as: **Example Request** +- Claude 3.7 Sonnet + ```bash curl $OPENAI_BASE_URL/chat/completions \ -H "Content-Type: application/json" \ @@ -349,6 +351,24 @@ curl $OPENAI_BASE_URL/chat/completions \ }' ``` +- DeepSeek R1 + +```bash +curl $OPENAI_BASE_URL/chat/completions \ + -H "Content-Type: application/json" \ + -H "Authorization: Bearer $OPENAI_API_KEY" \ + -d '{ + "model": "us.deepseek.r1-v1:0", + "messages": [ + { + "role": "user", + "content": "which one is bigger, 3.9 or 3.11?" + } + ], + "stream": false +}' +``` + **Example Response** ```json diff --git a/docs/Usage_CN.md b/docs/Usage_CN.md index 8d9e821..c541e19 100644 --- a/docs/Usage_CN.md +++ b/docs/Usage_CN.md @@ -329,6 +329,8 @@ You can try it with different questions, such as: **Request 示例** +- Claude 3.7 Sonnet + ```bash curl $OPENAI_BASE_URL/chat/completions \ -H "Content-Type: application/json" \ @@ -347,6 +349,24 @@ curl $OPENAI_BASE_URL/chat/completions \ }' ``` +- DeepSeek R1 + +```bash +curl $OPENAI_BASE_URL/chat/completions \ + -H "Content-Type: application/json" \ + -H "Authorization: Bearer $OPENAI_API_KEY" \ + -d '{ + "model": "us.deepseek.r1-v1:0", + "messages": [ + { + "role": "user", + "content": "which one is bigger, 3.9 or 3.11?" + } + ], + "stream": false +}' +``` + **Response 示例**