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

FileStatus is marked Obsolete while batch requests require files to be in Processed state in Azure OpenAI #312

Open
eknkc opened this issue Dec 22, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@eknkc
Copy link

eknkc commented Dec 22, 2024

Service

Azure OpenAI

Describe the bug

The FileStatus enum is marked obsolete:

[Obsolete($"This struct is obsolete. If this is a fine-tuning training file, it may take some time to process"

With description:

This struct is obsolete. If this is a fine-tuning training file, it may take some time to process after it has been uploaded. While the file is processing, you can still create a fine-tuning job but it will not start until the file processing has completed.

However on Azure OpenAI, batch requests require files to be processed before batches can be submitted. Which requires the client to poll the file status before submitting a batch.

Steps to reproduce

  • Create a file using a FileClient obtained from AzureOpenAiClient.
  • Try to immediately create a batch
  • Request fails.

Code snippets

No response

OS

macOs

.NET version

9

Library version

2.1.0

@eknkc eknkc added the bug Something isn't working label Dec 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant