This is an automated email from the ASF dual-hosted git repository.

xuetaoli pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/dubbo-go-pixiu-samples.git


The following commit(s) were added to refs/heads/main by this push:
     new 92d8709  fix(llm): align bestpractise env setup docs and request 
script (#131)
92d8709 is described below

commit 92d87090ed4acdf086dcf0da0216189013fc39cf
Author: btls1585 <[email protected]>
AuthorDate: Sun Apr 12 19:38:11 2026 +0800

    fix(llm): align bestpractise env setup docs and request script (#131)
---
 llm/bestpractise/README.md       | 7 ++++---
 llm/bestpractise/README_zh.md    | 5 +++--
 llm/bestpractise/test/request.sh | 4 ++--
 3 files changed, 9 insertions(+), 7 deletions(-)

diff --git a/llm/bestpractise/README.md b/llm/bestpractise/README.md
index 4a5c619..2fe896d 100644
--- a/llm/bestpractise/README.md
+++ b/llm/bestpractise/README.md
@@ -6,10 +6,11 @@ This sample demonstrates how to make a llm call using 
Dubbo-go-pixiu, and use pr
 
 ## 2. **Preparation**
 
-1. Add your DeepSeek API to `.env` file, see 
[deepseek](https://platform.deepseek.com) for more details.
+1. Add your DeepSeek API to the `.env` files, see 
[deepseek](https://platform.deepseek.com) for more details.
 
     ```shell
-    cp pathto/dubbo-go-pixiu-samples/llm/bestpractise/test/.env.example 
pathto/dubbo-go-pixiu-samples/llm/bestpractise/test/.env
+    cp pathto/dubbo-go-pixiu-samples/llm/bestpractise/.env.example 
pathto/dubbo-go-pixiu-samples/llm/bestpractise/.env
+    cp pathto/dubbo-go-pixiu-samples/llm/bestpractise/go-client/.env.example 
pathto/dubbo-go-pixiu-samples/llm/bestpractise/go-client/.env
     ```
    
 2. Edit the `prometheus.yml` file to set the correct IP address.
@@ -37,4 +38,4 @@ go run ./go-client/client.go
 
 ### **View Grafana Dashboard**
 
-Open your browser and go to `http://localhost:3000`, log in with the default 
username and password `admin`. After logging in, upload `grafana.json` as a 
dashboard, set the data source to Prometheus, and monitor the relevant metrics 
of LLM calls.
\ No newline at end of file
+Open your browser and go to `http://localhost:3000`, log in with the default 
username and password `admin`. After logging in, upload `grafana.json` as a 
dashboard, set the data source to Prometheus, and monitor the relevant metrics 
of LLM calls.
diff --git a/llm/bestpractise/README_zh.md b/llm/bestpractise/README_zh.md
index 61a594b..29bbace 100644
--- a/llm/bestpractise/README_zh.md
+++ b/llm/bestpractise/README_zh.md
@@ -10,7 +10,8 @@
 1. 将你的 DeepSeek API 添加到 `.env` 文件中,更多详情请参阅 
[deepseek](https://platform.deepseek.com)。
 
     ```shell
-    cp pathto/dubbo-go-pixiu-samples/llm/bestpractise/test/.env.example 
pathto/dubbo-go-pixiu-samples/llm/bestpractise/test/.env
+    cp pathto/dubbo-go-pixiu-samples/llm/bestpractise/.env.example 
pathto/dubbo-go-pixiu-samples/llm/bestpractise/.env
+    cp pathto/dubbo-go-pixiu-samples/llm/bestpractise/go-client/.env.example 
pathto/dubbo-go-pixiu-samples/llm/bestpractise/go-client/.env
     ```
 2. 根据真实情况修改 prometheus.yml 文件中的 IP 地址。
 
@@ -37,4 +38,4 @@ go run ./go-client/client.go
 
 ### **查看 Grafana 仪表盘**
 
-打开浏览器,访问 `http://localhost:3000`,使用默认用户名和密码 `admin` 登录。登录后,上传 `grafana.json` 
作为仪表盘,将数据源设置为 Prometheus,监控 LLM 调用的相关指标。
\ No newline at end of file
+打开浏览器,访问 `http://localhost:3000`,使用默认用户名和密码 `admin` 登录。登录后,上传 `grafana.json` 
作为仪表盘,将数据源设置为 Prometheus,监控 LLM 调用的相关指标。
diff --git a/llm/bestpractise/test/request.sh b/llm/bestpractise/test/request.sh
index 4121641..f7000e7 100644
--- a/llm/bestpractise/test/request.sh
+++ b/llm/bestpractise/test/request.sh
@@ -19,7 +19,7 @@
 
 curl -X POST "http://localhost:8888/chat/completions"; \
     -H "Content-Type: application/json" \
-    -H "Authorization: Bearer $OPENAI_API_KEY" \
+    -H "Authorization: Bearer $API_KEY" \
     -d '{
         "model": "deepseek-chat",
         "messages": [
@@ -27,4 +27,4 @@ curl -X POST "http://localhost:8888/chat/completions"; \
           {"role": "user", "content": "Hello!"}
         ],
         "stream": true
-    }'
\ No newline at end of file
+    }'

Reply via email to