tisfeng / Easydict

一个简洁优雅的词典翻译 macOS App。开箱即用,支持离线 OCR 识别,支持有道词典,🍎 苹果系统词典,🍎 苹果系统翻译,OpenAI,Gemini,DeepL,Google,Bing,腾讯,百度,阿里,小牛,彩云和火山翻译。A concise and elegant Dictionary and Translator macOS App for looking up words and translating text.
GNU General Public License v3.0
6.45k stars 328 forks source link

🐞 反馈问题: Unable to get translation in Gemini sometimes #451

Closed pxy0592 closed 3 months ago

pxy0592 commented 4 months ago

请先确认以下事项:

问题描述

Sometimes Gemini can't translate. The access to the internet is in China.

该问题是否可以稳定重现?

可重现

重现步骤

  1. Add Gemini API key
  2. Enable Gemini translate
  3. Input an English sentence that want to translate
  4. Try more times to translate any English sentence

截图

Here's the snapshot while EasyDict translated an English sentence.

image

期望结果

Able to translate any English sentence using Gemini Translate service.

解决方案(可选)

No response

设备型号 && 系统版本

Apple M1 Pro, macOS 14.3.1

是否愿意提交 PR 解决该问题?

github-actions[bot] commented 4 months ago

Hello pxy0592, Thank you for your first issue contribution 🎉

tisfeng commented 4 months ago

Your screenshot shows that the reason for the error is unsupportedUserLocation.

Note that Gemini appears to be not supported in China.

Please use supported countries and regions' IP proxy to access Gemini.

tisfeng commented 3 months ago

Another solution is to use a proxy URL to request Gemini, e.g. refer to StakeVladDracula .