NEKOparapa / AiNiee

一款专注于Ai翻译的工具,可以用来一键自动翻译RPG SLG游戏,Epub TXT小说,Srt Lrc字幕等等。
GNU General Public License v3.0
1.17k stars 68 forks source link

gemini API支持的特性建议利用一下。 #168

Closed daiaji closed 3 months ago

daiaji commented 3 months ago

System instructions https://cloud.google.com/vertex-ai/generative-ai/docs/learn/prompts/system-instructions JSON format responses https://ai.google.dev/gemini-api/docs/api-overview#json

应该都有用。

然后我搞得多key轮训被google暂停项目了。 虽然和TM和gemini本身有点拉脱不开关系。 删除项目然后新开项目,key好像就能用。

{
  "error": {
    "code": 429,
    "message": "Quota exceeded for quota metric 'Generate Content API requests per minute' and limit 'GenerateContent request limit per minute for a region' of service 'generativelanguage.googleapis.com' for consumer 'project_number:121212121212'.",
    "status": "RESOURCE_EXHAUSTED",
    "details": [
      {
        "@type": "type.googleapis.com/google.rpc.ErrorInfo",
        "reason": "RATE_LIMIT_EXCEEDED",
        "domain": "googleapis.com",
        "metadata": {
          "consumer": "projects/121212121212",
          "quota_limit": "GenerateContentRequestsPerMinutePerProjectPerRegion",
          "quota_limit_value": "0",
          "service": "generativelanguage.googleapis.com",
          "quota_location": "us-west4",
          "quota_metric": "generativelanguage.googleapis.com/generate_content_requests"
        }
      },
      {
        "@type": "type.googleapis.com/google.rpc.Help",
        "links": [
          {
            "description": "Request a higher quota limit.",
            "url": "https://cloud.google.com/docs/quota#requesting_higher_quota"
          }
        ]
      }
    ]
  }
}
NEKOparapa commented 3 months ago

谷歌终于支持system_prompt了,之前全球就他一家不支持。Gemini1.0不支持,1.5才可以,看看情况要不要删除这个1.0模型

daiaji commented 3 months ago

谷歌终于支持system_prompt了,之前全球就他一家不支持。Gemini1.0不支持,1.5才可以,看看情况要不要删除这个1.0模型

删了吧,没卵用。 又菜又不免费。

daiaji commented 3 months ago

gemini这个缺行真是绝了。 改提示词和示例是半点用都没有。 而且还缺的随机。 反馈给官方,看有没有卵用。