Closed
Description
Confirm this is an issue with the Python library and not an underlying OpenAI API
- This is an issue with the Python library
Describe the bug
When I call the list_events method to get the job log, the ID of the same log returned by two repeated calls is sometimes different, which leads to the error "Given after argument was not found in items." when I use the get_next_page method to get the next page.
Called twice with the same parameters, some jobs have different IDs.
To Reproduce
from openai import AzureOpenAI
client=AzureOpenAI(
azure_ad_token=token,
azure_endpoint=endpoint,
api_version=api_version
)
events = client.fine_tuning.jobs.list_events(fine_tuning_job_id=job_id, limit=10)
events.get_next_page()
Code snippets
from openai import AzureOpenAI
client=AzureOpenAI(
azure_ad_token=token,
azure_endpoint=endpoint,
api_version=api_version
)
client.fine_tuning.jobs.list_events(fine_tuning_job_id=job_id, limit=10)
OS
macOS
Python version
Python v3.10.13
Library version
openai v1.3.5