Skip to content

Conversation

@Mor-Li
Copy link
Contributor

@Mor-Li Mor-Li commented Apr 27, 2025

I encountered an authentication error while testing my Azure OpenAI API key.
After debugging, I found that the api_version was hardcoded instead of using the configured environment variable.
This caused 401 errors like the following:

[04/27/25 15:50:37] ERROR ERROR:pdf2zh.converter:Error code: 401 - {'error': {'code': '401', 'message': 'Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource.'}}

This PR fixes it by properly using the AZURE_OPENAI_API_VERSION from the environment settings.

@awwaawwa awwaawwa closed this Apr 27, 2025
@awwaawwa
Copy link
Collaborator

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:
#586

@Mor-Li
Copy link
Contributor Author

Mor-Li commented Apr 27, 2025

Hi, I have already submitted a new PR at the designated place in the new repository. Here is the link: awwaawwa#6

@Byaidu Byaidu reopened this Apr 28, 2025
@Byaidu Byaidu merged commit 31d341b into PDFMathTranslate:main Apr 28, 2025
@qinguangxu
Copy link

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.

@awwaawwa
Copy link
Collaborator

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.

#586

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.

4 participants