Cerlancism / chatgpt-subtitle-translator

Efficient translation tool based on ChatGPT API
https://cerlancism.github.io/chatgpt-subtitle-translator/
MIT License
185 stars 18 forks source link

Adding Gemini as translator backend #36

Open dgoryeo opened 2 weeks ago

dgoryeo commented 2 weeks ago

Gemini would be a good fit for Cerlancism translator since it provides much larger window size than GPT. Would you consider to add Gemini 1.5 pro as an engine?

Cerlancism commented 2 weeks ago

You should able to do it by just overriding the OPENAI_BASE_URL env

Documentation from Google appears to provide such endpoints:

https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/call-vertex-using-openai-library

Cerlancism commented 2 weeks ago

Or run your own proxy: https://github.com/zhu327/gemini-openai-proxy