An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
Can't upload file through API
I'm trying to upload files to Azure for fine-tuning, but I'm getting resource not available error.
I know that the client I creates is fine, because I tested it with the chat option. For example, if I run the following using my client:
client.chat.completions.create(
messages=[{"content": "What is the weather like today?", "role": "user"}], model="gpt-4o"
)
It will work fine, but when I try to run a command to upload a file:
client.files.create(file=open("messages/train_messages.jsonl", "rb"), purpose="fine-tune")
It gives me an error: NotFoundError: Error code: 404 - {'error': {'code': '404', 'message': 'Resource not found'}}
Azure OpenAI in Foundry Models
1 answer
Sort by: Newest
-
Deleted
This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.
2 deleted comments
Comments have been turned off. Learn more