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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 task done
keepsaunter opened this issue Dec 6, 2023 · 5 comments
Labels
Azure for issues relating to the Azure OpenAI service

Comments

@keepsaunter
Copy link

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

@keepsaunter keepsaunter added the bug Something isn't working label Dec 6, 2023
@rattrayalex
Copy link
Collaborator

@kristapratico could you take a look at this from the azure perspective?

@pkranen
Copy link

pkranen commented Dec 8, 2023

@keepsaunter , good catch. We have a fix and it will roll out with the next release. Thanks for reporting!

@rattrayalex rattrayalex added Azure for issues relating to the Azure OpenAI service and removed bug Something isn't working labels Dec 8, 2023
@rattrayalex
Copy link
Collaborator

Terrific, thank you @pkranen !

Since this isn't a library bug, I'm going to go ahead and close this issue.

@keepsaunter
Copy link
Author

keepsaunter commented Dec 19, 2023

@keepsaunter , good catch. We have a fix and it will roll out with the next release. Thanks for reporting!

@pkranen
Could I know the specific repair time?

@pkranen
Copy link

pkranen commented Dec 20, 2023

It will reach all regions by the end of this week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Azure for issues relating to the Azure OpenAI service
Projects
None yet
Development

No branches or pull requests

3 participants