[Fix] Fix hardcoded Azure OpenAI API version in translator#874
[Fix] Fix hardcoded Azure OpenAI API version in translator#874Byaidu merged 2 commits intoPDFMathTranslate:mainfrom
Conversation
|
The current maintainer of this project is developing pdf2zh v2.0-rc at aw/pdf2zh v2-rc. pdf2zh v1.x has been deprecated and is no longer being developed or maintained. v2.0-rc is now able to accept some small PRs. Please discuss with the maintainer @awwaawwa in the main repository issue before submitting a PR to aw/pdf2zh v2-rc~ Please submit a pull request for v2.0 RC. The trial exe download link is at, in addition, it can also be run from the source code: |
|
Hi, I have already submitted a new PR at the designated place in the new repository. Here is the link: awwaawwa#6 |
|
Is this repository still being actively updated? So for version 2.0, which project should I be following? I also have another question — what is the relationship between this project and the BabelDOC repository? I noticed that there are many similarities in their code. Based on my testing, I found that BabelDOC translates very quickly. |
|
I encountered an authentication error while testing my Azure OpenAI API key.
After debugging, I found that the
api_versionwas hardcoded instead of using the configured environment variable.This caused 401 errors like the following:
This PR fixes it by properly using the
AZURE_OPENAI_API_VERSIONfrom the environment settings.