Skip to content

fix handling of prompt in OpenAI liked Translator#1065

Closed
soukouki wants to merge 1 commit intoPDFMathTranslate:mainfrom
soukouki:sou7/fix-handling-of-prompt-in-openai-liked-translator
Closed

fix handling of prompt in OpenAI liked Translator#1065
soukouki wants to merge 1 commit intoPDFMathTranslate:mainfrom
soukouki:sou7/fix-handling-of-prompt-in-openai-liked-translator

Conversation

@soukouki
Copy link
Copy Markdown
Contributor

The self.prompttext = prompt operation is already handled by OpenAITranslator. To avoid redundant processing, I've modified OpenAILikedTranslator to include the prompt in the super().__init__ call.

@reycn
Copy link
Copy Markdown
Collaborator

reycn commented Mar 22, 2026

Thanks, will run a test first and merge later, given the priority of this improvement.

reycn added a commit that referenced this pull request Mar 22, 2026
…lator

Resolve conflict and apply fix from PR #1065 — prompt is now passed
through super().__init__() instead of being set separately, consistent
with how other translators handle it.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@reycn
Copy link
Copy Markdown
Collaborator

reycn commented Mar 22, 2026

Applied this fix directly to main in commit 8d990bb — prompt is now passed through super().init() in OpenAIlikedTranslator. Thanks for the contribution!

@reycn reycn closed this Mar 22, 2026
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.

2 participants