Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to config the chosen model? #167

Open
1 task done
hotsmile opened this issue May 22, 2024 · 1 comment
Open
1 task done

how to config the chosen model? #167

hotsmile opened this issue May 22, 2024 · 1 comment

Comments

@hotsmile
Copy link

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

  • I am willing to submit a pull request for this issue.
@evi1hack
Copy link

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

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

Eg:

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants