Skip to content

Commit

Permalink
Update method name to avoid conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
lincmba committed Jan 8, 2025
1 parent 8a83431 commit 27d8c85
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@ class GeminiModel() {
*
* @return The GenerativeModel instance.
*/
fun getModel(): GenerativeModel = model
fun getGeminiModel(): GenerativeModel = model
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class SpeechToForm(
private val speechToText: SpeechToText,
geminiModel: GeminiModel,
) {
private val textToForm: TextToForm = TextToForm(geminiModel.getModel())
private val textToForm: TextToForm = TextToForm(geminiModel.getGeminiModel())
private val logger = Logger.getLogger(SpeechToForm::class.java.name)

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class TextToFormTest {
textToForm = TextToForm(mockGenerativeModel)
} else {
val geminiModel = GeminiModel()
textToForm = TextToForm(geminiModel.getModel())
textToForm = TextToForm(geminiModel.getGeminiModel())
}
}

Expand Down

0 comments on commit 27d8c85

Please sign in to comment.