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

[Document Intelligence] Release 1.0.0 GA #31746

Merged
merged 66 commits into from
Dec 17, 2024
Merged

Conversation

HarshaNalluru
Copy link
Member

@HarshaNalluru HarshaNalluru commented Nov 13, 2024

Release

Marks the GA 1.0.0 release for @azure-rest/ai-document-intelligence

Codegen

Regenerated from https://github.com/Azure/azure-rest-api-specs/tree/main/specification/ai/DocumentIntelligence
Commit Id: 67c84bd51ccfca841c39f274b9147347abed3f66
API Version: 2024-11-30

Changelog

Features Added

  • New parseOperationIdFromResponse method has been added to parse operationId from the initial response of batch analysis requests which can later be used to get the analysis results.
        // Example
        const initialResponse = await client
          .path("/documentModels/{modelId}:analyzeBatch", "prebuilt-layout")
          .post({
            contentType: "application/json",
            body: {
              azureBlobSource: {
                containerUrl: batchTrainingFilesContainerUrl(),
              },
              resultContainerUrl: batchTrainingFilesResultContainerUrl(),
              resultPrefix: "result",
            },
          });
    
        if (isUnexpected(initialResponse)) {
          throw initialResponse.body.error;
        }
        const batchOperationId = parseOperationIdFromResponse(initialResponse);
    
        const response = await client
          .path(
            "/documentModels/{modelId}/analyzeBatchResults/{resultId}",
            "prebuilt-layout",
            batchOperationId,
          )
          .get();

Look at changelog for more features and changes.

@HarshaNalluru HarshaNalluru marked this pull request as ready for review December 13, 2024 05:58
HarshaNalluru and others added 19 commits December 15, 2024 22:13
Co-authored-by: Deyaaeldeen Almahallawi <[email protected]>
Copy link
Member

@deyaaeldeen deyaaeldeen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

@HarshaNalluru HarshaNalluru enabled auto-merge (squash) December 17, 2024 00:36
@HarshaNalluru HarshaNalluru merged commit 7644726 into main Dec 17, 2024
17 checks passed
@HarshaNalluru HarshaNalluru deleted the harshan/proto-batch-analyze branch December 17, 2024 00:42
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

Successfully merging this pull request may close these issues.

6 participants