JSONL file content shown below:
{"prompt":"使用 VSCode 和 Git 进行团队协作开发-->","completion":" 开发工具$!"}
{"prompt":"掌握 Pandas 中的分组和聚合操作-->","completion":" 数据科学$!"}
{"prompt":"如何使用 Kotlin 和 Android Studio 开发一个简单的 Todo 应用-->","completion":" 移动开发$!"}
{"prompt":"如何使用 Scikit-learn 进行机器学习任务-->","completion":" 数据科学$!"}
{"prompt":"使用 Django 和 Python 构建一个简单的博客应用-->","completion":" 后端开发$!"}
{"prompt":"如何使用 CSS 实现网页响应式布局-->","completion":" 前端开发$!"}
{"prompt":"使用 Node.js 和 Express 构建一个简单的 RESTful API-->","completion":" 后端开发$!"}
{"prompt":"如何使用 React Native 开发跨平台移动应用-->","completion":" 移动开发$!"}
{"prompt":"如何使用 Vue.js 和 D3.js 创建可交互的数据可视化-->","completion":" 前端开发$!"}
{"prompt":"如何使用 React Hooks 构建可复用的组件-->","completion":" 前端开发$!"}
** Create a fine-tuning job:**
let config = {
method: 'post',
maxBodyLength: Infinity,
url: 'https://api.openai.com/v1/fine_tuning/jobs',
headers: {
'Content-Type': 'application/json',
'Authorization': `Bearer ${openAIKeys}`
},
data: {training_file: fileId, model: 'davinci-002'},
proxy: {
/*
It depends on your real proxy configuration,
Open your proxy client and view the configuration information.
*/
host: "127.0.0.1",
port: 4780,
protocol: "http"
}
};
async function createJob(fileId) {
console.log('config:', config)
const fineTune = await axios(config)
.then((response) => {
console.log("createJob:", JSON.stringify(response.data));
return response.data.id
})
.catch((error) => {
// console.log('linlin')
console.log(error);
});
}
The screenshots of print ‘config’ shown bellow:
I had carefully checked request params according to Open AI API. What’s going on ! Please give me any idea ! Thanks