Skip to content

Sweep: Implement uploading of files for model fine-tuning to OpenAI API #153

Description

@lehcode
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.
• 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    sweepAssigns Sweep to an issue or pull request.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions