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

Add support the new fine-tuning API (/fine_tuning/jobs) for GPT3.5-Turbo or laters #119

Closed
usagi opened this issue Oct 15, 2023 · 2 comments

Comments

@usagi
Copy link

usagi commented Oct 15, 2023

Using FineTunes of async-openai with GPT3.5-Turbo as the base model, the following response is returned:

Some("invalid_request_error"): gpt-3.5-turbo can only be fine-tuned on the new fine-tuning API (/fine_tuning/jobs). This API (/fine-tunes) is being deprecated. Please refer to our documentation for more information: https://platform.openai.com/docs/api-reference/fine-tunin

It seems that the async-openai API implementation needs to be updated before it can be used. 🥺

Repro.

  1. CreateFineTuneRequestArgs::default()
  2. .model("gpt-3.5-turbo") (https://docs.rs/async-openai/0.14.3/async_openai/types/struct.CreateFineTuneRequest.html#structfield.model )
  3. .build() and then reqeust with client client.fine_tunes().create(fine_tune_request).await
@64bit
Copy link
Owner

64bit commented Oct 15, 2023

Hi @usagi

Thank you for reporting the issue. I haven't had chance to update to latest API spec yet. Current implementation is for old spec.

Plan is to update library with latest spec for 0.15.0 release. In the meantime PR is welcome if you'd like to take a look into it.

@64bit
Copy link
Owner

64bit commented Oct 30, 2023

New Fine Tuning support is released in v0.15.0. Please give it a try!

@64bit 64bit closed this as completed Oct 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants