Skip to content

Commit

Permalink
CD-159 - speed up simulated streaming.
Browse files Browse the repository at this point in the history
  • Loading branch information
rmontoya12 committed Oct 28, 2024
1 parent 3060aad commit a6b5c5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fastchat/serve/api_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -1308,7 +1308,7 @@ def jab_api_stream_iter(
pos = 0
while pos < len(text):
# simulate token streaming
pos += 3
pos += 5
time.sleep(0.001)
data = {
"text": text[:pos],
Expand Down

0 comments on commit a6b5c5c

Please sign in to comment.