Skip to content

For events of the same openai job, the id returned each time the list_events method is called may be different. #938

Closed
@keepsaunter

Description

@keepsaunter

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.
image

Called twice with the same parameters, some jobs have different IDs.

image

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Azurefor issues relating to the Azure OpenAI service

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions