feat: update generative model to gemini-2.5-flash for improved performance
This commit is contained in:
@@ -216,7 +216,7 @@ export class AIService {
|
|||||||
|
|
||||||
// Usar la API correcta de Google Generative AI
|
// Usar la API correcta de Google Generative AI
|
||||||
const model = this.genAI.getGenerativeModel({
|
const model = this.genAI.getGenerativeModel({
|
||||||
model: "gemini-1.5-flash",
|
model: "gemini-2.5-flash",
|
||||||
generationConfig: {
|
generationConfig: {
|
||||||
maxOutputTokens: Math.min(this.config.maxOutputTokens, Math.max(1024, estimatedTokens * 0.5)),
|
maxOutputTokens: Math.min(this.config.maxOutputTokens, Math.max(1024, estimatedTokens * 0.5)),
|
||||||
temperature: 0.7,
|
temperature: 0.7,
|
||||||
|
|||||||
Reference in New Issue
Block a user