xing61 / zzz-api

优质稳定的OpenAI的API接口-For企业和开发者。OpenAI的api proxy,支持ChatGPT的API调用,支持openai的API接口,支持:gpt-4,gpt-3.5。不需要openai Key, 不需要买openai的账号,不需要美元的银行卡,通通不用的,直接调用就行,稳定好用!!智增增
https://gpt.zhizengzeng.com/
593 stars 47 forks source link

微调结果文件 #21

Closed WileMore closed 2 months ago

WileMore commented 3 months ago

微调模型后产生的结果文件支持下载吗?

xing61 commented 3 months ago

问题解决了。支持下载了

WileMore commented 3 months ago

问题解决了。支持下载了

job_stat = client.fine_tuning.jobs.retrieve("finetune.id") files_list = client.files.list() print(files_list)

fine_tune_result_file = client.fine_tuning.jobs.retrieve(job_stat.id).result_files print(fine_tune_result_file) result_file = client.files.retrieve(fine_tune_result_file[0]) print(result_file.id) result_content = client.files.content(result_file.id) print(result_content)

print(result_content)输出的结果是:<openai._legacy_response.HttpxBinaryResponseContent object at 0x0000018B4289BDA0>

WileMore commented 2 months ago

搞定了,非常感谢,还是需要用base64做一次内容的decode到utf-8才能得到正确的格式,