@@ -110,7 +110,35 @@ Open a new linux console, run following command
110110
111111` curl -vv -X POST http://127.0.0.1:8000/v1/chat/completions `
112112
113- Check the output. Make sure there is no network connection and proxy setting issue at Client side
113+ Check the output. Make sure there is no network connection and proxy setting issue at Client side.
114+
115+ If there is no network connection issue, you will get such response from console:
116+ ```
117+ curl -vv -X POST http://127.0.0.1:8000/v1/chat/completions
118+ * Uses proxy env variable no_proxy == 'localhost,127.0.0.1'
119+ * Trying 127.0.0.1:8000...
120+ * Connected to 127.0.0.1 (127.0.0.1) port 8000 (#0)
121+ > POST /v1/chat/completions HTTP/1.1
122+ > Host: 127.0.0.1:8000
123+ > User-Agent: curl/7.81.0
124+ > Accept: */*
125+ >
126+ * Mark bundle as not supporting multiuse
127+ < HTTP/1.1 422 Unprocessable Entity
128+ < date: Wed, 12 Jun 2024 01:56:44 GMT
129+ < server: uvicorn
130+ < content-length: 81
131+ < content-type: application/json
132+ <
133+ * Connection #0 to host 127.0.0.1 left intact
134+ {"detail":[{"loc":["body"],"msg":"field required","type":"value_error.missing"}]}
135+ ```
136+
137+ And at server side there is connection in (but incorrect input data), there output is:
138+ ```
139+ INFO: 127.0.0.1:59902 - "POST /v1/chat/completions HTTP/1.1" 422 Unprocessable Entity
140+ ```
141+ Otherwise, check your network setting.
114142
115143### 3.1.2 Test request command at client side
116144
0 commit comments