Skip to content

Commit

Permalink
Fix the comments regarding task_id_generator_function to be consistent (
Browse files Browse the repository at this point in the history
openai#890)

Co-authored-by: Jing Ai <[email protected]>
  • Loading branch information
jingairpi and Jing Ai authored Nov 28, 2023
1 parent 6bbb659 commit 59019bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/api_request_parallel_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
- api_endpoint_from_url (extracts API endpoint from request URL)
- append_to_jsonl (writes to results file)
- num_tokens_consumed_from_request (bigger function to infer token usage from request)
- task_id_generator_function (yields 1, 2, 3, ...)
- task_id_generator_function (yields 0, 1, 2, ...)
- Run main()
"""

Expand Down Expand Up @@ -140,7 +140,7 @@ async def process_api_requests_from_file(
queue_of_requests_to_retry = asyncio.Queue()
task_id_generator = (
task_id_generator_function()
) # generates integer IDs of 1, 2, 3, ...
) # generates integer IDs of 0, 1, 2, ...
status_tracker = (
StatusTracker()
) # single instance to track a collection of variables
Expand Down

0 comments on commit 59019bd

Please sign in to comment.