最新 Docker 没有 403 错误了,但好像环境变量 REACT_APP_GEMINI_API_KEY 和 REACT_APP_PASSCODE_MD5 不起作用了,不会带入。1. 打开没有要求输入 Passcode ,2. 发起一个聊天,则出现错误,API Key 没有问题。“ [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.
{
"REACT_APP_PASSCODE_MD5": "<my-passcode>",
"REACT_APP_TITLE_SITE": "",
"REACT_APP_TITLE_HEADER": "",
"REACT_APP_GEMINI_API_SSE": "",
"REACT_APP_GEMINI_API_KEY": ""<my-api-key>"",
"REACT_APP_GEMINI_API_URL": "https://chat.my-domain.com"
}