You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
• Add a new method uploadFineTuneFile that takes a file and a purpose as parameters. This method should use the OpenAI API's createFile method to upload the file. The purpose should be 'fine-tune'.
src/openai/OpenaiFinetunesApi.ts
• Add a new endpoint POST /openai/fine-tunes/upload that handles the HTTP request for file upload. This endpoint should call the uploadFineTuneFile method in the SoakpProxy class to upload the file to the OpenAI API.
• Convert uploaded files into JSONL with Python means.
Checklist
src/SoakpProxy.ts
• Add a new method uploadFineTuneFile that takes a file and a purpose as parameters. This method should use the OpenAI API's createFile method to upload the file. The purpose should be 'fine-tune'.
src/openai/OpenaiFinetunesApi.ts
• Add a new endpoint POST /openai/fine-tunes/upload that handles the HTTP request for file upload. This endpoint should call the uploadFineTuneFile method in the SoakpProxy class to upload the file to the OpenAI API.
src/openai/OpenaiFilesApi.ts
• Add a new method convertToJSONL that takes a file as a parameter and converts it into JSONL format using Python means. This method should be called before the file is uploaded to the OpenAI API.
Checklist
src/SoakpProxy.tssrc/openai/OpenaiFinetunesApi.tsChecklist
src/SoakpProxy.tssrc/openai/OpenaiFinetunesApi.tssrc/openai/OpenaiFilesApi.ts