Jazee6 / cloudflare-ai-web

支持Gemini Pro / Cloudflare Workers AI / ChatGPT的融合Web平台
https://ai.jaze.top
Apache License 2.0
1.87k stars 471 forks source link

gemini 报错 500 #17

Closed ywhnghng closed 7 months ago

ywhnghng commented 7 months ago

gemini 报错 500,其他模型使用正常

Jazee6 commented 7 months ago

请检查后台日志

ywhnghng commented 7 months ago

[nuxt] [request error] [unhandled] [500] [GoogleGenerativeAI Error]: Error fetching from https://generativelanguage.googleapis.com/v1/models/gemini-pro:streamGenerateContent?alt=sse: [400 Bad Request] API key not valid. Please pass a valid API key. [{"@type":"type.googleapis.com/google.rpc.ErrorInfo","reason":"API_KEY_INVALID","domain":"googleapis.com","metadata":{"service":"generativelanguage.googleapis.com"}}] at (index.mjs:1:117527)
at (index.mjs:1:121910)

ywhnghng commented 7 months ago

[POST] /api/auth/gemini/?model=gemini-pro status=500

Jazee6 commented 7 months ago

API key无效