无法检索已上载的文件内容。
请告诉我出了什么问题?我试过每种类型的文件:搜索,分类,答案,和微调。文件上传成功,但在检索内容时显示错误。
import openai
openai.api_key = "sk-bbjsjdjsdksbndsndksbdksbknsndksd" # this is wrong key
# Replace file_id with the file's id whose file content is required
content = openai.File.download("file-5Xs86wEDO5gx8fOitMYArV8r")
print(content)错误:
Traceback (most recent call last):
File "main.py", line 6, in <module>
content = openai.File.download("file-5Xs86wEDO5gx8fOitMYArV8r")
File "/usr/local/lib/python3.8/dist-packages/openai/api_resources/file.py", line 61, in download
raise requestor.handle_error_response(
openai.error.InvalidRequestError: Not allowed to download files of purpose: classifications发布于 2022-06-04 10:15:35
来自OpenAI社区的答案
目前,我们只允许对微调运行的结果进行下载,而不允许对微调运行的输入文件进行下载。我们也不允许下载与搜索相关的文件。↗️
https://stackoverflow.com/questions/71333114
复制相似问题