-
Notifications
You must be signed in to change notification settings - Fork 413
Description
Opencommit Version
3.2.12
Node Version
20.13.1
NPM Version
10.5.2
What OS are you seeing the problem on?
Windows
What happened?
Every time I try to choose a Gemini model to generate commits an error saying that the model was not found appears:
$ oco
┌ open-commit
│
◇ 3 staged files:
pom.xml
src/main/java/com/zonafranca/configuration/ClientDataSourceRouter.java
src/main/java/com/zonafranca/configuration/DataSourceConfig.java
│
◑ Generating the commit message
✖ Model 'gemini-pro-vision' not found
│
◇ Select an alternative model:
│ gemini-1.5-flash (Recommended)
│
◇ Save as default model?
│ Yes
✔ Model saved as default
Retrying with gemini-1.5-flash...
◐ Generating the commit message.
✖ Model 'gemini-1.5-flash' not found
│
◆ Select an alternative model:
◇ Select an alternative model:
│
◇ Save as default model?
│ Yes
✔ Model saved as default
Retrying with gemini-1.5-pro...
◒ Generating the commit message...
✖ Model 'gemini-1.5-pro' not found
│
◆ Select an alternative model:
◇ Select an alternative model:
│
◇ Save as default model?
│ Yes
✔ Model saved as default
Retrying with gemini-1.0-pro...
◑ Generating the commit message...
✖ Model 'gemini-1.0-pro' not found
│
◆ Select an alternative model:
◇ Select an alternative model:
│
◇ Save as default model?
│ Yes
✔ Model saved as default
Retrying with gemini-pro-vision...
◑ Generating the commit message.
✖ Model 'gemini-pro-vision' not found
│
■ Select an alternative model:
│ gemini-1.0-pro
│
Expected Behavior
The expected behavior is that once a model of the list is select the commit can be generated with ease
Current Behavior
When choosing a Gemini model to generate commits an error saying that the model was not found appears:
$ oco
┌ open-commit
│
◇ 3 staged files:
pom.xml
src/main/java/com/zonafranca/configuration/ClientDataSourceRouter.java
src/main/java/com/zonafranca/configuration/DataSourceConfig.java
│
◑ Generating the commit message
✖ Model 'gemini-pro-vision' not found
│
◇ Select an alternative model:
│ gemini-1.5-flash (Recommended)
│
◇ Save as default model?
│ Yes
✔ Model saved as default
Retrying with gemini-1.5-flash...
◐ Generating the commit message.
✖ Model 'gemini-1.5-flash' not found
│
◆ Select an alternative model:
◇ Select an alternative model:
│
◇ Save as default model?
│ Yes
✔ Model saved as default
Retrying with gemini-1.5-pro...
◒ Generating the commit message...
✖ Model 'gemini-1.5-pro' not found
│
◆ Select an alternative model:
◇ Select an alternative model:
│
◇ Save as default model?
│ Yes
✔ Model saved as default
Retrying with gemini-1.0-pro...
◑ Generating the commit message...
✖ Model 'gemini-1.0-pro' not found
│
◆ Select an alternative model:
◇ Select an alternative model:
│
◇ Save as default model?
│ Yes
✔ Model saved as default
Retrying with gemini-pro-vision...
◑ Generating the commit message.
✖ Model 'gemini-pro-vision' not found
│
■ Select an alternative model:
│ gemini-1.0-pro
│
Possible Solution
No response
Steps to Reproduce
No response
Relevant log output
$ oco
┌ open-commit
│
◇ 3 staged files:
pom.xml
src/main/java/com/zonafranca/configuration/ClientDataSourceRouter.java
src/main/java/com/zonafranca/configuration/DataSourceConfig.java
│
◑ Generating the commit message
✖ Model 'gemini-pro-vision' not found
│
◇ Select an alternative model:
│ gemini-1.5-flash (Recommended)
│
◇ Save as default model?
│ Yes
✔ Model saved as default
Retrying with gemini-1.5-flash...
◐ Generating the commit message.
✖ Model 'gemini-1.5-flash' not found
│
◆ Select an alternative model:
◇ Select an alternative model:
│
◇ Save as default model?
│ Yes
✔ Model saved as default
Retrying with gemini-1.5-pro...
◒ Generating the commit message...
✖ Model 'gemini-1.5-pro' not found
│
◆ Select an alternative model:
◇ Select an alternative model:
│
◇ Save as default model?
│ Yes
✔ Model saved as default
Retrying with gemini-1.0-pro...
◑ Generating the commit message...
✖ Model 'gemini-1.0-pro' not found
│
◆ Select an alternative model:
◇ Select an alternative model:
│
◇ Save as default model?
│ Yes
✔ Model saved as default
Retrying with gemini-pro-vision...
◑ Generating the commit message.
✖ Model 'gemini-pro-vision' not found
│
■ Select an alternative model:
│ gemini-1.0-pro
│