babaohuang / GeminiProChat

Minimal web UI for GeminiPro.
https://geminiprochat.com
MIT License
4.19k stars 12.3k forks source link

how to config the chosen model? #167

Open hotsmile opened 1 month ago

hotsmile commented 1 month ago

How is Gemini Pro Chat deployed?

Node

Describe the bug

the gemini current version is gemini 1.5 pro, how to config the model parameter?

Console Logs

No response

Participation

evi1hack commented 2 weeks ago

Modify line 11 of the / src/utils/openAI.ts file:

Const model = genAI.getGenerativeModel ({model: 'gemini-pro'})

Eg:

Const model = genAI.getGenerativeModel ({model: 'gemini-1.5-pro'})