I cannot register "metadata" info in Azure OpenAI Batch API

TERADA, Tomohiko (寺田 智彦) 20 Reputation points
2024-09-06T11:02:02.3+00:00

Since a couple days ago, I've not able to register "metadata" info when I create new batch Job.

Is there anyone who have same issue?

I call 'create new batch job' API with my local data in "metadata".

I receive the job has been registered successfully with my "metadata".

However, if I call 'list job batch', my metadata is empty.

It's been working properly until Sep-4.

Regards,

Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
2,944 questions
{count} votes

Accepted answer
  1. romungi-MSFT 45,036 Reputation points Microsoft Employee
    2024-09-17T11:42:57.86+00:00

    @TERADA, Tomohiko (寺田 智彦) I can confirm that there has been a bug with batch jobs that caused the metadata property to be null. A fix has been deployed now and I can see metadata property returns with the data added in the create job. Please see a response of my batch job that was submitted today which contains the metadata.

    {
        "cancelled_at": null,
        "cancelling_at": null,
        "completed_at": 1726573123,
        "completion_window": "24h",
        "created_at": 1726572674,
        "error_file_id": "file-4ec49c3f-10e2-429d-aefd-f5b2e38998c5",
        "expired_at": null,
        "expires_at": 1726659073,
        "failed_at": null,
        "finalizing_at": 1726573054,
        "id": "batch_033b4cc2-d00c-4df9-967e-fccde36e6578",
        "in_progress_at": 1726572839,
        "input_file_id": "file-380cd850c29947b695bca88a7006bcae",
        "errors": null,
        "metadata": {
            "modified": "true",
            "user": "abc123"
        },
        "object": "batch",
        "output_file_id": "file-bbb36a01-497e-42c8-88a7-b2e68ecef292",
        "request_counts": {
            "total": 3,
            "completed": 3,
            "failed": 0
        },
        "status": "completed",
        "endpoint": "/chat/completions"
    }
    
    
    

    Could you please retry with a new job and check if it is working as expected for you. Thanks!!

    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.