NextChat icon indicating copy to clipboard operation
NextChat copied to clipboard

[Feature Request]: 增加Gemini 1.5Pro和剩余token

Open do02fw opened this issue 1 year ago • 15 comments

Problem Description

官方现在已经开放了1.5的API,https://ai.google.dev/models?hl=zh-cn ,希望可以加上,剩余token像这个项目一样https://github.com/lobehub/lobe-chat

Solution Description

增加Gemini1.5Pro和剩余token显示

Alternatives Considered

No response

Additional Context

No response

do02fw avatar Mar 22 '24 07:03 do02fw

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


Title: [Feature Request]: Add Gemini 1.5Pro and remaining tokens

Problem Description

The official API of 1.5 has now been opened, https://ai.google.dev/models?hl=zh-cn, I hope it can be added, and the remaining tokens can be like this project https://github.com/lobehub/lobe- chat

Solution Description

Add Gemini1.5Pro and remaining token display

Alternatives Considered

No response

Additional Context

No response

Issues-translate-bot avatar Mar 22 '24 07:03 Issues-translate-bot

gemini1.5还真的可以,我刚刚用了别人的pull requests试了一下,已经可以了 https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web/pull/4244

mountainguan avatar Mar 23 '24 09:03 mountainguan

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


Gemini1.5 only released the model, but has not yet opened the API.

Issues-translate-bot avatar Mar 23 '24 09:03 Issues-translate-bot

@mountainguan This PR still has issues that need to be fixed, and actually uses the 1.0 model

fred-bf avatar Mar 24 '24 06:03 fred-bf

我收到1.5 api的通过的申请邮件了,我想知道怎么才能配置1.5

Icestab avatar Mar 28 '24 03:03 Icestab

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


I received the approved application email for 1.5 api. I want to know how to configure 1.5.

Issues-translate-bot avatar Mar 28 '24 03:03 Issues-translate-bot

我收到1.5 api的通过的申请邮件了,我想知道怎么才能配置1.5

修改该项目 ./app/constant.ts 把ChatPath修改为 "v1beta/models/gemini-1.5-pro-latest:generateContent",就ok了

mountainguan avatar Mar 28 '24 05:03 mountainguan

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


I received the approved application email for 1.5 api. I want to know how to configure 1.5

Modify the project ./app/constant.ts and change the ChatPath to "v1beta/models/gemini-1.5-pro-latest:generateContent", it will be ok

Issues-translate-bot avatar Mar 28 '24 05:03 Issues-translate-bot

可以看看#4412

RubuJam avatar Mar 29 '24 08:03 RubuJam

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


You can check out #4412

Issues-translate-bot avatar Mar 29 '24 08:03 Issues-translate-bot

可以看看#4412

感谢大佬

meteorjim avatar Mar 29 '24 08:03 meteorjim

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


You can check out #4412

Thanks boss

Issues-translate-bot avatar Mar 29 '24 08:03 Issues-translate-bot

This PR still has issues that need to be fixed, and actually uses the 1.0 model

Please review my PR #4412 ,Thank you.

RubuJam avatar Mar 29 '24 11:03 RubuJam

剩余token显示想要加一

fengzai6 avatar Mar 29 '24 13:03 fengzai6

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


The remaining tokens show that they want to add one

Issues-translate-bot avatar Mar 29 '24 13:03 Issues-translate-bot

gemini-1.5-pro 的正确 model name 是 gemini-1.5-pro-latest

https://github.com/google-gemini/cookbook/issues/52#issuecomment-2053605198

ShinChven avatar Apr 13 '24 10:04 ShinChven

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


The correct model name for gemini-1.5-pro is gemini-1.5-pro-latest

https://github.com/google-gemini/cookbook/issues/52#issuecomment-2053605198

Issues-translate-bot avatar Apr 13 '24 10:04 Issues-translate-bot

This PR still has issues that need to be fixed, and actually uses the 1.0 model

Please review my PR #4412 ,Thank you.

Thanks for your work!

Dean-YZG avatar Apr 15 '24 03:04 Dean-YZG

now, Gemini-1.5 supported

Dean-YZG avatar Apr 15 '24 03:04 Dean-YZG