Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error code: 404 - {'timestamp': 1732457108046, 'status': 404, 'error': 'Not Found', 'path': '//files'} #326

Open
momomos-self opened this issue Nov 24, 2024 · 2 comments

Comments

@momomos-self
Copy link

Describe the bug 描述bug
发生意外错误: Error code: 404 - {'timestamp': 1732457108046, 'status': 404, 'error': 'Not Found', 'path': '//files'}

my code 我的代码

import openai
import os
model_name = 'gpt-3.5-turbo-0125'  # unuse暂时没用
client = openai.Client(
    api_key = "myapi",
    base_url = "https://api.chatanywhere.tech/v1"
)
try:
    with open("data/train.jsonl", "rb") as file:
        response = client.files.create(file=file, purpose="fine-tune")
    print("文件上传成功")
    print(client.files.list()) # 列出文件
except FileNotFoundError:
    print("找不到文件。请确保文件名和路径正确。")
except PermissionError as e:
    print(f"权限错误: {e}")
except Exception as e:
    print(f"发生意外错误: {e}")

WHY?

@chatanywhere
Copy link
Owner

不支持文件接口哦

@momomos-self
Copy link
Author

不支持文件接口哦

那这个模型如何进行微调啊?因为GPT3模型是需要付费的,所以我想用这个免费的来微调,如果不支持文件上传,那是不是不能微调?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants