Skip to content
This repository was archived by the owner on Dec 31, 2024. It is now read-only.
This repository was archived by the owner on Dec 31, 2024. It is now read-only.

train.json format #8

@wang-kangkang

Description

@wang-kangkang

我查到openai.File.create的输入需要是jsonl格式,并且每一行是一个字典,它的key为’prompt’ ‘completion’,但我查看我生成的train.json,它的结构是:
I found The input for openai.File.create() needs to be in JSONL format, and each line should be a dictionary with key 'prompt' and 'completion'. However, when I look at the trainjson I generated, its structure is:
[
--{'messages',
----['role':'system', 'content':'.....'],
----['role':'user', 'content':'.....'] ,
----['role':'assistant', 'content':'.....'],
--},
--{'messages',
----['role':'system', 'content':'.....'],
----['role':'user', 'content':'.....'] ,
----['role':'assistant', 'content':'.....'],
--},
--{'messages',
----['role':'system', 'content':'.....'],
----['role':'user', 'content':'.....'] ,
----['role':'assistant', 'content':'.....'],
--},
......
]
看起来这个结构的数据不能用啊,该怎么理解这个问题?
It seems that the data in this structure cannot be used. How should we understand this problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions