anonymousException / renpy-translator

A translator for renpy based on google | youdao | deepl | open-ai | offline-ai tranlation supports extract untranslated words and translate
MIT License
108 stars 11 forks source link

The OpenAI API key from other services isn't working. #52

Open maxrich14 opened 2 weeks ago

maxrich14 commented 2 weeks ago

First, I tried the OpenAI API. I simply inserted the key, and everything works. I wanted to try the new o1-mini model, but this model isn't available on my OpenAI account. I bought an API key for o1-mini from the openrouter.ai website. But now the problem is that it doesn't work at all. I changed the URL as described on the website, but I just get errors like "Another non-200-range status code was received: 404 <Response [404 Not Found]>". How can I fix this?

maxrich14 commented 2 weeks ago

The issue was resolved. I just needed to set the base URL up to /v1. not full URL