solarisclient

This commit is contained in:
shinrei
2025-07-01 15:26:04 +00:00
parent 039f50dca1
commit 48b109eb31
2 changed files with 17 additions and 2 deletions

View File

@@ -1,4 +1,7 @@
BOT__TOKEN= BOT__TOKEN=
GOOGLE_API_KEY=
GROUP_ID=
DB__HOST=mongodb DB__HOST=mongodb
DB__PORT=27017 DB__PORT=27017

View File

@@ -1,2 +1,14 @@
class Solaris: import os
pass 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)
)
)