Skip to content

Commit

Permalink
Reduce response for streaming
Browse files Browse the repository at this point in the history
  • Loading branch information
Francisco committed Oct 18, 2024
1 parent 08fa220 commit e2de3a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mock_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ async def mock_streaming_response():
"after token, chunk after chunk, until the entire response is completed. "
"For the purpose of this mock, we are repeating a small text many times to simulate "
"a much larger response. "
) * 3 # Repeat the text 3 times to simulate a large response
)

# Break the long text into small chunks
chunk_size = 7 # Number of characters per chunk
Expand Down

0 comments on commit e2de3a3

Please sign in to comment.