Skip to content
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

Openai.FineTuningJob.list_events does not work with v0.27 and api version 2024-02-01 #1411

Closed
1 task done
mikelam92 opened this issue May 11, 2024 · 1 comment
Closed
1 task done
Labels
bug Something isn't working

Comments

@mikelam92
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

What is the api version that is compatible with an openai sdk version of 0.27.10?
And for Deployment.list() it worked with "2023-03-15-preview". Is there a compatibility matrix somewhere?
Thank you.

>>> openai.FineTuningJob.list_events("ftjob-xxxxxxxxxx")

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.10/site-packages/openai/api_resources/abstract/nested_resource_class_methods.py", line 133, in paginated_list_nested_resources
    return getattr(cls, resource_request_method)(
  File "/usr/local/lib/python3.10/site-packages/openai/api_resources/abstract/nested_resource_class_methods.py", line 43, in nested_resource_request
    response, _, api_key = requestor.request(
  File "/usr/local/lib/python3.10/site-packages/openai/api_requestor.py", line 298, in request
    resp, got_stream = self._interpret_response(result, stream)
  File "/usr/local/lib/python3.10/site-packages/openai/api_requestor.py", line 700, in _interpret_response
    self._interpret_response_line(
  File "/usr/local/lib/python3.10/site-packages/openai/api_requestor.py", line 765, in _interpret_response_line
    raise self.handle_error_response(
openai.error.InvalidRequestError: Resource not found

To Reproduce

openai.FineTuningJob.list_events("ftjob-xxxxxxxxxx")

Code snippets

openai.FineTuningJob.list_events("ftjob-xxxxxxxxxx")

OS

linux

Python version

3.10

Library version

open v0.27.10

@mikelam92 mikelam92 added the bug Something isn't working label May 11, 2024
@rattrayalex
Copy link
Collaborator

v0.27 is deprecated – please upgrade to the latest SDK version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants