lobehub / lobe-chat

🤯 Lobe Chat - an open-source, modern-design LLMs/AI chat framework. Supports Multi AI Providers( OpenAI / Claude 3 / Gemini / Ollama / Bedrock / Azure / Mistral / Perplexity ), Multi-Modals (Vision/TTS) and plugin system. One-click FREE deployment of your private ChatGPT chat application.
https://chat-preview.lobehub.com
Other
34.85k stars 8.19k forks source link

[Bug] 最新版本使用google gemini-1.5pro模型报错,旧版本没问题 #1848

Closed yuwenhuoxuan closed 2 months ago

yuwenhuoxuan commented 3 months ago

💻 系统环境

Other Linux

📦 部署环境

Docker

🌐 浏览器

Chrome

🐛 问题描述

{ "error": { "message": "[GoogleGenerativeAI Error]: Error fetching from https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-pro-latest:streamGenerateContent?alt=sse: [404 Not Found] models/gemini-1.5-pro-latest is not found for API version v1beta, or is not supported for StreamGenerateContent. Call ListModels to see the list of available models and their supported methods." }, "provider": "google" }

🚦 期望结果

No response

📷 复现步骤

No response

📝 补充信息

No response

lobehubbot commented 3 months ago

👀 @yuwenhuoxuan

Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. Please make sure you have given us as much context as possible.\ 非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

xaya1001 commented 3 months ago

LobeChat v0.145.5 没问题啊 image

我估计你没收到官方的申请邮件吧?旧版本那个1.5pro是假的,新版本才是真的1.5 如果没收到邮件,那你确实还没有gemini-1.5-pro-latest的权限

今天出现了好几个如题同样的issue,#1842,#1844 可能是因为之前上线了一个可用的 假的 Gemini 1.5 ,更新后突然无法使用导致的。Gemini 1.5 Pro 和 Gemini Ultra API 目前处于预览阶段,仅对部分开发者开放。

yuwenhuoxuan commented 3 months ago

@xaya1001 Gemini 1.0 Pro可以使用,谢谢提醒。之前假的Gemini 1.5pro在lobe-chat旧版本中可用,今天更新lobe-chat后就无法使用了。

lobehubbot commented 3 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


@xaya1001 Gemini 1.0 Pro can be used, thank you for the reminder. The previously fake Gemini 1.5pro was available in the old version of lobe-chat, but it cannot be used after updating lobe-chat today.

Masque423 commented 3 months ago

@xaya1001 Gemini 1.0 Pro可以使用,谢谢提醒。之前假的Gemini 1.5pro在lobe-chat旧版本中可用,今天更新lobe-chat后就无法使用了。

因为你的api并没有1.5的权限,所以之前假的(你以为是1.5其实是1.0)可以用,新版本是真的1.5所以用不了

lobehubbot commented 3 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


@xaya1001 Gemini 1.0 Pro can be used, thank you for the reminder. The previously fake Gemini 1.5pro was available in the old version of lobe-chat, but it cannot be used after updating lobe-chat today.

Because your api does not have 1.5 permissions, the previous fake version (you thought it was 1.5 but actually was 1.0) can be used, but the new version is true 1.5, so it cannot be used.

MapleEve commented 3 months ago
image

没有收到这个邮件的,都没有 Gemini-1.5 的使用权限。

ZDancer commented 3 months ago

我收到了楼上的邮件,但是还是不能用1.5. 还试着重新生成了密钥,不行。

lobehubbot commented 3 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


I received the email, but I still can’t use 1.5. I also tried regenerating the key, but it still didn't work.

ConnorCHN commented 3 months ago

我收到了楼上的邮件,但是还是不能用1.5. 还试着重新生成了密钥,不行。

Gemini 1.5pro 5月2号要收费的,免费的api应该用不了,即便是能用的话,对于TPM和请求数都是有限制的。参考:官方价格表 微信截图_20240402163736

lobehubbot commented 3 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


I received the email from upstairs, but I still can’t use 1.5. I also tried to regenerate the key, but it didn’t work.

Gemini 1.5pro will be charged on May 2nd, and the free API should not be available. Even if it can be used, there are restrictions on TPM and number of requests. Reference: Official price list WeChat screenshot_20240402163736

ZDancer commented 3 months ago

I applied two Google APIs; however, when I configured the Lobochat Docker container's API settings, it changed without any indication. This was not noticed until I checked the language models interface's API key on the Lobochat website. By revising the api key to the one with access right to 1.5 pro, it could be used.

AlphaCatMeow commented 3 months ago

请教一下,应该如何获取真正的Gemini 1.5 Pro的权限?我在官网链接https://ai.google.dev/只能获取到1.0的权限。但是在aistudio.google.com中是可以使用Gemini 1.5 Pro模型的。

lobehubbot commented 3 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Please tell me how to obtain the real permissions of Gemini 1.5 Pro? I can only get 1.0 permissions from the official website link https://ai.google.dev/. But the Gemini 1.5 Pro model is available at aistudio.google.com.

MapleEve commented 3 months ago

请教一下,应该如何获取真正的Gemini 1.5 Pro的权限?我在官网链接https://ai.google.dev/只能获取到1.0的权限。但是在aistudio.google.com中是可以使用Gemini 1.5 Pro模型的。

官方已经关闭测试申请通道了。等5月2号正式收费之后就可以付费使用了

lobehubbot commented 3 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Please tell me how to obtain the real permissions of Gemini 1.5 Pro? I can only obtain 1.0 permissions from the official website link [https://ai.google.dev/. But Gemini can be used in aistudio.google.com](https://ai.google.dev/%E5%8F%AA%E8%83%BD%E8%8E%B7%E5%8F%96%E5 %88%B01.0%E7%9A%84%E6%9D%83%E9%99%90%E3%80%82%E4%BD%86%E6%98%AF%E5%9C%A8aistudio.google .com%E4%B8%AD%E6%98%AF%E5%8F%AF%E4%BB%A5%E4%BD%BF%E7%94%A8Gemini) 1.5 Pro model.

The official has closed the test application channel. You can pay to use it after the official fee is charged on May 2nd.

ZDancer commented 3 months ago

User should join the waitlist for Gemini pro .15 and wait for the access to it. invitation for waitlist is issued by Google team, it should be selected, however i dont know the rules.

lobehubbot commented 2 months ago

✅ @yuwenhuoxuan

This issue is closed, If you have any questions, you can comment and reply.\ 此问题已经关闭。如果您有任何问题,可以留言并回复。

lobehubbot commented 2 months ago

:tada: This issue has been resolved in version 0.147.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: