Skip to content

Commit f6b186f

Browse files
wineeeCopilot
authored andcommitted
Apply suggestion from @Copilot
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 7b85597 commit f6b186f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/ai_service.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,9 @@ impl AiService for GeminiTranslator {
513513
"text": prompt
514514
}]
515515
}],
516-
"max_tokens": self.max_tokens
516+
"generationConfig": {
517+
"maxOutputTokens": self.max_tokens
518+
}
517519
});
518520

519521
let ai_host = match url.split('/').nth(2) {

0 commit comments

Comments
 (0)