Skip to content

Commit

Permalink
update model names to use generations (#62)
Browse files Browse the repository at this point in the history
Googlers see [b/325447428](http://b/325447428)
  • Loading branch information
thatfiredev authored Feb 15, 2024
1 parent b820376 commit a8ac99e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ For example, with just a few lines of code, you can access Gemini's multimodal c

```kotlin
val generativeModel = GenerativeModel(
modelName = "gemini-pro-vision",
modelName = "gemini-1.0-pro-vision-latest",
apiKey = BuildConfig.apiKey
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ val GenerativeViewModelFactory = object : ViewModelProvider.Factory {
// Initialize a GenerativeModel with the `gemini-pro` AI model
// for text generation
val generativeModel = GenerativeModel(
modelName = "gemini-pro",
modelName = "gemini-1.0-pro",
apiKey = BuildConfig.apiKey,
generationConfig = config
)
Expand All @@ -51,7 +51,7 @@ val GenerativeViewModelFactory = object : ViewModelProvider.Factory {
// Initialize a GenerativeModel with the `gemini-pro-vision` AI model
// for multimodal text generation
val generativeModel = GenerativeModel(
modelName = "gemini-pro-vision",
modelName = "gemini-1.0-pro-vision-latest",
apiKey = BuildConfig.apiKey,
generationConfig = config
)
Expand All @@ -61,7 +61,7 @@ val GenerativeViewModelFactory = object : ViewModelProvider.Factory {
isAssignableFrom(ChatViewModel::class.java) -> {
// Initialize a GenerativeModel with the `gemini-pro` AI model for chat
val generativeModel = GenerativeModel(
modelName = "gemini-pro",
modelName = "gemini-1.0-pro",
apiKey = BuildConfig.apiKey,
generationConfig = config
)
Expand Down

0 comments on commit a8ac99e

Please sign in to comment.