This PR adds the functionality to upload files for model fine-tuning to the OpenAI API. It includes changes to the SoakpProxy and OpenaiFinetunesApi classes.
Summary of Changes
Added a new method uploadFineTuneFile in the SoakpProxy class to handle file upload for fine-tuning. This method uses the OpenAI API's createFile method.
Added a new endpoint POST /openai/fine-tunes/upload in the OpenaiFinetunesApi class to handle the HTTP request for file upload. This endpoint calls the uploadFineTuneFile method in the SoakpProxy class.
Unit tests have been added to ensure the correctness of the new functionality.
Manual testing has been performed to verify the file upload for model fine-tuning.
Documentation
Updated the README.md file to include information about the new file upload functionality for model fine-tuning.
Checklist
[ ] Code is syntactically correct and follows the existing code style.
[ ] Unit tests have been added for the new functionality.
[ ] Documentation has been updated to reflect the changes.
[ ] The code has been tested locally and all tests pass.
[ ] The PR has been reviewed by at least one other team member.
Fixes #153.
To checkout this PR branch, run the following command in your terminal:
git checkout sweep/upload-file-for-fine-tuning
To get Sweep to edit this pull request, leave a comment below or in the code. Leaving a comment in the code will only modify the file but commenting below can change the entire PR.
Description
This PR adds the functionality to upload files for model fine-tuning to the OpenAI API. It includes changes to the
SoakpProxy
andOpenaiFinetunesApi
classes.Summary of Changes
uploadFineTuneFile
in theSoakpProxy
class to handle file upload for fine-tuning. This method uses the OpenAI API'screateFile
method.POST /openai/fine-tunes/upload
in theOpenaiFinetunesApi
class to handle the HTTP request for file upload. This endpoint calls theuploadFineTuneFile
method in theSoakpProxy
class.Related Issue
This PR addresses Issue #153.
Testing
Documentation
Checklist
Fixes #153.
To checkout this PR branch, run the following command in your terminal:
To get Sweep to edit this pull request, leave a comment below or in the code. Leaving a comment in the code will only modify the file but commenting below can change the entire PR.