How to download a jsonl file from text

Hello !

I have a question, I’d like to be able to create a file from a text.

I’ll explain, I’m actually trying to create jsonl to fine fine-tune gtp’s.
I have achieved to create the jsonl text correctly and store it in a variable, but now, I want to upload it into the Chagpt module.

Is there any way to create a file a jsonl ? I’ve tried to use Google drive and the module create a file but the ending ends by .txt and not jsonl which is not accepted by open AI.

Thanks fro your help in advance !

You can create a JSON/JSONL file using the Google Drive module “Upload a File”.

You just have to wrap the string data with the function toBinary:

Alternatively, you can directly upload the JSON/L data to OpenAI in the same way.

3 Likes

Hi Sam !

Thanks for your answer.

I’ve already tried with Google Drive to write .jsonl but I had a file called name.jsonl.txt.
Probably because i did not use the tobinary function.

I’ll try to do this.

regarding to upload a file in Chatgpt module. I’ve already thought about this but, if i’m not wrong, we can not choose which assistant we want to custom right ?
If yes, I’m blind so, if not, it could be great new features in this module.

Have a great day!

No, the main reason is you cannot use “Create a File”, which only creates plain text files.

You’ll need to use “Upload a File”.

3 Likes

Oh indeed, my bad, I did create a file and not upload file.

Thanks for your this information, it will help me a lot for future scenario. :pray:

2 Likes