diff options
| author | SamlonDev <stankiewiczgracjan2019@gmail.com> | 2025-05-22 11:41:48 +0200 |
|---|---|---|
| committer | SamlonDev <stankiewiczgracjan2019@gmail.com> | 2025-05-22 11:41:48 +0200 |
| commit | 09acffc6a9e38aad11f30cecc915988cd79106d5 (patch) | |
| tree | 6e16090ab7738032779f781a30c934870a206311 /cogs/ai.py | |
| parent | added ai (diff) | |
| download | senator-sperma-09acffc6a9e38aad11f30cecc915988cd79106d5.tar.gz senator-sperma-09acffc6a9e38aad11f30cecc915988cd79106d5.zip | |
add AI acting as senator armstrong
Diffstat (limited to 'cogs/ai.py')
| -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 | ||
