View Single Post
Old 07-02-2023, 12:19 AM   #55
parataxia0
Junior Member
parataxia0 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jul 2023
Device: Kindle Fire 2021
Question Hopefully resolved soon....

Hi,

First of all, this plugin is brilliant and it has translated via Google Free for many of my e-books that needed it.

However, I am trying to use ChatGPT instead and I am receiving this error when it works for a few paragraphs, this error arises:



Below is the log:

calibre, version 6.22.0 (win32, embedded-python: True)
Translation Failed: Failed: 'choices'

Traceback (most recent call last):
File "calibre_plugins.ebook_translator.advanced", line 159, in translate_paragraphs
File "calibre_plugins.ebook_translator.translation" , line 149, in handle
File "calibre_plugins.ebook_translator.request", line 37, in run
File "asyncio\runners.py", line 44, in run
File "asyncio\base_events.py", line 641, in run_until_complete
File "calibre_plugins.ebook_translator.request", line 34, in create_tasks
File "calibre_plugins.ebook_translator.request", line 22, in create_worker
File "calibre_plugins.ebook_translator.translation" , line 144, in process_translation
File "calibre_plugins.ebook_translator.translation" , line 109, in _prepare_translation
File "calibre_plugins.ebook_translator.engines.chatgpt" , line 106, in parse_stream
KeyError: 'choices'


Unsure what I can do on my end, seems as though the dictionary and key is somehow invalid.. and I do not know how to reproduce it either... hopefully this thread is still active. Thank you!~!
parataxia0 is offline   Reply With Quote