这是indexloc提供的服务,不要输入任何密码
Skip to content
This repository was archived by the owner on Jan 17, 2025. It is now read-only.
This repository was archived by the owner on Jan 17, 2025. It is now read-only.

gemini-1.5-pro出现API错误 #30

@wansenlyt

Description

@wansenlyt

已经申请到gemini-1.5-pro使用资格几天了,没想到在今天使用ChatGemini 时,提示错误:[GoogleGenerativeAI Error]: Error fetching from https://generativelanguage.googleapis.com/v1/models/gemini-pro:streamGenerateContent?alt=sse: [403 ] Method doesn't allow unregistered callers (callers without established identity). Please use API Key or other form of API consumer identity to call this API。

到aistudio.google.com去查询,不知道什么时候已将我使用的模型默认改为了gemini-1.5-pro,在aistudio.google.com的API管理页面上看到测试接口地址改为:https://generativelanguage.googleapis.com/v1beta/models/gemini-pro:generateContent?key=YOUR_API_KEY。

本人是通过docker部署的ChatGemini可否通过REACT_APP_GEMINI_API_URL配置项来修改接口地址呢?
同时在此谢谢开发者的无私贡献。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions