From 59019bd21ee4964dd58f6671b8dc1f3f6f3a92b3 Mon Sep 17 00:00:00 2001 From: Jing Ai <42414856+jingairpi@users.noreply.github.com> Date: Tue, 28 Nov 2023 12:02:37 -0800 Subject: [PATCH] Fix the comments regarding task_id_generator_function to be consistent (#890) Co-authored-by: Jing Ai --- examples/api_request_parallel_processor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/api_request_parallel_processor.py b/examples/api_request_parallel_processor.py index 542c355fd4..35b22a2872 100644 --- a/examples/api_request_parallel_processor.py +++ b/examples/api_request_parallel_processor.py @@ -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() """ @@ -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