Files
solaris-guest-bot/src/bot/modules/solaris/client.py
shinrei 763832b026 мяу
2025-07-01 15:32:13 +00:00

16 lines
588 B
Python

import os
from google import genai
from google.genai.types import GenerateContentConfig, ThinkingConfig
class SolarisClient:
def __init__(self) -> None:
client = genai.Client(api_key=os.getenv('GOOGLE_API_KEY')).aio
self.chat = client.chats.create(
model="gemini-2.5-flash",
config=GenerateContentConfig(
system_instruction="meow meow meow", # надо где-то промпт хранить, в бд наверное хезе
thinking_config=ThinkingConfig(thinking_budget=0)
)
)
# мяу