dmMaze / BallonsTranslator

深度学习辅助漫画翻译工具, 支持一键机翻和简单的图像/文本编辑 | Yet another computer-aided comic/manga translation tool powered by deeplearning
GNU General Public License v3.0
2.68k stars 179 forks source link

how to add gemini #560

Open jackson66631 opened 2 months ago

jackson66631 commented 2 months ago

I have API but I don't know how to add it.

dmMaze commented 2 months ago

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

Select ChatGPT, and set corresponding params: api key, override model, 3rd party url

jackson66631 commented 2 months ago

how do i get the 3rd party url Is this url?https://${LOCATION}-aiplatform.googleapis.com/v1beta1/projects/${PROJECT_ID}/locations/${LOCATION}/endpoints/openapi