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

Add: japaneast for latest api version available list #118

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ry0y4n
Copy link

@ry0y4n ry0y4n commented Dec 1, 2024

I have a Document Intelligence resource located in "japaneast". And now, I confirmed that I can use the latest API version (2024-07-31-preview) on my code (Python). I don't know whether other regions can use, but I confirmed that "japaneast" is supported now. So add "japaneast" to the list of regions that helps users to know where they can use the latest API version.

My environment:

  • Document Intelligence
    • location: japaneast
    • plan: free
  • Development environment
    • azure-ai-documentintelligence==1.0.0b4

My code

from azure.core.credentials import AzureKeyCredential
from azure.ai.documentintelligence import DocumentIntelligenceClient
from azure.ai.documentintelligence.models import AnalyzeResult
import os
from dotenv import load_dotenv
load_dotenv('.env')

endpoint = os.environ["FORM_RECOGNIZER_ENDPOINT"]
key = os.environ["FORM_RECOGNIZER_KEY"]
path_to_sample_documents ="sample-layout.xlsx"
# path_to_sample_documents = "sample-layout.docx"

document_analysis_client = DocumentIntelligenceClient(
    endpoint=endpoint, credential=AzureKeyCredential(key)
)

with open(path_to_sample_documents, "rb") as f:
    poller = document_analysis_client.begin_analyze_document(
        "prebuilt-layout", analyze_request=f, content_type="application/octet-stream"
    )

result: AnalyzeResult = poller.result()
print("modelId: {}".format(result.model_id))
print("apiVersion: {}".format(result.api_version))
print("content: {}".format(result.content))

The output is here:

$ uv run layout-test.py 
modelId: prebuilt-layout
apiVersion: 2024-07-31-preview ←-- HERE
content: Sheet1 
page1
Sheet2
page2

Copy link
Contributor

@ry0y4n : Thanks for your contribution! The author(s) have been notified to review your proposed change.

Copy link
Contributor

Learn Build status updates of commit 44a91e5:

✅ Validation status: passed

File Status Preview URL Details
articles/ai-services/document-intelligence/includes/preview-notice.md ✅Succeeded

For more details, please refer to the build report.

For any questions, please:

@ttorble
Copy link
Contributor

ttorble commented Dec 2, 2024

@laujan

Can you review the proposed changes?

Important: When the changes are ready for publication, adding a #sign-off comment is the best way to signal that the PR is ready for the review team to merge.

#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

@prmerger-automator prmerger-automator bot added the aq-pr-triaged C+L Pull Request Review Team label label Dec 2, 2024
Copy link

This pull request has been inactive for at least 14 days. If you are finished with your changes, don't forget to sign off. See the contributor guide for instructions.
Get Help
Docs Support Teams Channel
Resolve Merge Conflict

@github-actions github-actions bot added the inactive This PR is inactive for more than 14 days label Dec 16, 2024
@ry0y4n
Copy link
Author

ry0y4n commented Dec 19, 2024

Hi @laujan & @ttorble ,

Is there any updates?

@github-actions github-actions bot removed the inactive This PR is inactive for more than 14 days label Dec 19, 2024
@v-dirichards
Copy link
Contributor

@laujan for review. Thanks.

Copy link

github-actions bot commented Jan 2, 2025

This pull request has been inactive for at least 14 days. If you are finished with your changes, don't forget to sign off. See the contributor guide for instructions.
Get Help
Docs Support Teams Channel
Resolve Merge Conflict

@github-actions github-actions bot added the inactive This PR is inactive for more than 14 days label Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants