ChatGPTNextWeb / ChatGPT-Next-Web

A cross-platform ChatGPT/Gemini UI (Web / PWA / Linux / Win / MacOS). 一键拥有你自己的跨平台 ChatGPT/Gemini 应用。
https://app.nextchat.dev/
MIT License
73k stars 57.98k forks source link

[Bug] 无法使用v1beta接口 #4699

Closed do02fw closed 2 months ago

do02fw commented 2 months ago

Bug Description

发送消息返回 json { "error": true, "message": "models/gemini-1.5-pro 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." }

Steps to Reproduce

调用加入beta版的Gemini账号的API,会报错

Expected Behavior

调用v1beta的API

Screenshots

No response

Deployment Method

Desktop OS

windows11

Desktop Browser

edge

Desktop Browser Version

125

Smartphone Device

No response

Smartphone OS

No response

Smartphone Browser

No response

Smartphone Browser Version

No response

Additional Logs

{
  "error": true,
  "message": "models/gemini-1.5-pro 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."
}
Issues-translate-bot commented 2 months ago

Bot detected the issue body's language is not English, translate it automatically.


Title: [Bug] Unable to use v1beta interface

QAbot-zh commented 2 months ago

v1beta 对应的模型名称是 gemini-1.5-pro-latest

Issues-translate-bot commented 2 months ago

Bot detected the issue body's language is not English, translate it automatically.


The model name corresponding to v1beta is gemini-1.5-pro-latest

hossain666 commented 2 months ago

{ "error": true, "message": "models/gemini-1.5-pro 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." }``

QAbot-zh commented 2 months ago

gemini-1.5-pro-latest

use the model name "gemini-1.5-pro-latest"