DraqueT / PolyGlot

PolyGlot is a conlang construction toolkit.
MIT License
378 stars 43 forks source link

[Beta] GPT translation error #1316

Closed rcochrane55 closed 11 months ago

rcochrane55 commented 11 months ago

I'm trying out the latest beta and the GPT translation tool. I set up an API key through OpenAI and put it into the field in settings, set up a grammar section as text only (removed images of tables) and then tried having GPT translate a simple noun phrase. However, when I click translate, I receive the following error message: data body problem

As far as I can tell, I've done everything right to set up the tool, and I don't really understand what the error means. Has this come up before?

DraqueT commented 11 months ago

Thank you for bringing this to my attention! I will check this out on my Windows test environment as soon as I get the chance. I am not able to reproduce this on my current Mac build and am wondering if there's some platform specific quirk going on.

Which grammar sections do you have selected there? It is possible that there is something included in one that is not being encapsulated correctly when I package it up for GPT.

The error itself means that the message that is being built and sent to the GPT servers is somehow malformed.

rcochrane55 commented 11 months ago

The only grammar section selected here is "Nouns and Pronouns" and I have set that section up as text-only. Normally, I use screenshots of tables I made in google docs in the grammar section, but GPT can't accept image input, so I took the information in those tables and formatted them as text. I don't see anything in that section that GPT shouldn't be able to process. I can send over the file again too if that would be helpful. My grammar section needs a pretty extensive rewrite in any case for clarity and concision, so I decided to start small in testing out the GPT translation and just set up one section for it initially to try out very simple translations.