Skip to content

[bugs] CustomTranslation translation error: 'choices' in OpenRouter #263

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

Open
Milor123 opened this issue May 2, 2025 · 3 comments
Open

Comments

@Milor123
Copy link

Milor123 commented May 2, 2025

Hi guys, i am trying of translate using OpenRouter as API, and it works nice but now is stop work

in the free models i get

QPainter::end: Painter not active, aborted
Block Length:  10
CustomTranslation translation error: 'choices'
CustomTranslation translation error: 'choices'
Block Length:  5
CustomTranslation translation error: 'choices'
CustomTranslation translation error: 'choices'
CustomTranslation translation error: 'choices'

and using paid models with my API

CustomTranslation translation error: API request failed: Expecting value: line 1 column 1 (char 0)
CustomTranslation translation error: API request failed: Expecting value: line 1 column 1 (char 0)
CustomTranslation translation error: API request failed: Expecting value: line 1 column 1 (char 0)

However When I tried it at first, it seemed to work normally, using a version of gemini free, but after a while it stopped working.

I tried to create a new API but the result was the same.

And with Groq neither work

What should i do?

Image

Image

I am using python 3.12.8 with CUDA in windows using pyenv-win

@Milor123
Copy link
Author

Milor123 commented May 2, 2025

UPDATE NOTE: Strange, I had to delete the project and recreate it and apparently OpenRouter is working again.

UPDATE 2:

Again get CustomTranslation translation error: API request failed: Expecting value: line 1 column 1 (char 0) and empty pages in translate

Note: i am using PAID API not FREE

Problem

Many pages are empty, without translate

Image

@Milor123 Milor123 changed the title CustomTranslation translation error: 'choices' in OpenRouter [bugs] CustomTranslation translation error: 'choices' in OpenRouter May 3, 2025
@ogkalu2
Copy link
Owner

ogkalu2 commented May 7, 2025

Do you always get this error ?

@Milor123
Copy link
Author

Milor123 commented May 7, 2025

Do you always get this error ?

Ohh bro excuse me.

Update 3

I am not sure but think that it solve the problem doing it:
Go to:

  1. Settings
  2. LLMs
  3. [] Provide image as input to multimodal LLMs (Uncheck it !!)

Like this:
Image

for my test i was using google/gemini-2.5-flash-preview
After uncheck the box, I've translate 2 comics and work without problems.

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

No branches or pull requests

2 participants