Browse Source

Update api.md (#3945)

* Update api.md

Changed the calculation of tps (token/s) in the documentation

* Update docs/api.md

---------

Co-authored-by: Jeffrey Morgan <jmorganca@gmail.com>
Darinka 1 năm trước cách đây
mục cha
commit
3ecae420ac
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      docs/api.md

+ 1 - 1
docs/api.md

@@ -95,7 +95,7 @@ The final response in the stream also includes additional data about the generat
 - `context`: an encoding of the conversation used in this response, this can be sent in the next request to keep a conversational memory
 - `context`: an encoding of the conversation used in this response, this can be sent in the next request to keep a conversational memory
 - `response`: empty if the response was streamed, if not streamed, this will contain the full response
 - `response`: empty if the response was streamed, if not streamed, this will contain the full response
 
 
-To calculate how fast the response is generated in tokens per second (token/s), divide `eval_count` / `eval_duration`.
+To calculate how fast the response is generated in tokens per second (token/s), divide `eval_count` / `eval_duration` * `10^9`.
 
 
 ```json
 ```json
 {
 {