-
Notifications
You must be signed in to change notification settings - Fork 51
Update DI to CU converter for GA #131
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
base: main
Are you sure you want to change the base?
Conversation
|
|
||
| # Set the global variables | ||
| api_version = os.getenv("API_VERSION") | ||
| api_version = os.getenv("API_VERSION") or CU_API_VERSION |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what if the os environment doesn't match the api-version?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This code will try to get API_VERSION in the env first. If it's none, the program will use default CU_API_VERSION. We can also consider always using the latest default api version instead of letting the user input it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's only use default CU_API_VERSION since we will always update to the latest version for this tool.
| "Apim-Subscription-id": f"{subscription_key}", | ||
| "Content-Type": "application/pdf", | ||
| "Ocp-Apim-Subscription-Key": f"{subscription_key}", | ||
| "Content-Type": "application/octet-stream", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why are we changing the content type while keeping the content the same?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure about the same content you mentioned. We may have image files. Do we only support pdf files in this tool?
Purpose
Does this introduce a breaking change?
Pull Request Type
What kind of change does this Pull Request introduce?
How to Test
What to Check
Verify that the following are valid
Other Information