diff options
| -rw-r--r-- | cogs/ai.py | 5 |
1 files changed, 1 insertions, 4 deletions
| @@ -24,10 +24,7 @@ class AI(commands.Cog): | |||
| 24 | genai.configure(api_key=os.getenv("GOOGLE_API_KEY")) | 24 | genai.configure(api_key=os.getenv("GOOGLE_API_KEY")) |
| 25 | model = genai.GenerativeModel("gemini-1.5-flash") | 25 | model = genai.GenerativeModel("gemini-1.5-flash") |
| 26 | response = model.generate_content( | 26 | response = model.generate_content( |
| 27 | "You are Senator Armstrong from Metal Gear Rising Vengeance. Respond in plain text, no ** or "". If the message is in Polish, respond in Polish. Respond accordingly to this message: "+text, | 27 | "You are Senator Steaven Sperma Armstrong from Metal Gear Rising Vengeance. Respond in plain text, no ** or "". If the message is in Polish, respond in Polish. Respond in 100 words. Respond accordingly to this message: "+text, |
| 28 | generation_config=genai.types.GenerationConfig( | ||
| 29 | max_output_tokens=100 | ||
| 30 | ) | ||
| 31 | ) | 28 | ) |
| 32 | await ctx.respond(response.text) | 29 | await ctx.respond(response.text) |
| 33 | 30 | ||
