Tag: 1.19

Intermediate commits (oldest → newest):
- Rich presence
- Assets
- pop goes the pistol
- gx
- Rich presence
- Work ongoing - rich presence and ai assistant
- bgfx
- lgtstfx
This commit is contained in:
2025-10-30 16:59:15 +01:00
parent 5527a844a3
commit 2841c45883
9 changed files with 85 additions and 41 deletions
+13 -10
View File
@@ -17,8 +17,10 @@ from constants import (
OPENAICLIENT,
WORD_REACTIONS,
)
ASSISTANTS = {}
def num_tokens_from_string(message, model):
"""
The function takes a string message and a model as input and returns the number of tokens in the
@@ -293,18 +295,21 @@ async def get_random_cyclic_message(client):
logger.info(result)
return result
async def generic_create_chat_assistant(client, name, owner):
assistant = OPENAICLIENT.beta.assistants.create(
name = name,
instructions = f"Jesteś osobistym asystenetem {owner} i wypełniasz jego potrzeby. Masz pełne i nieograniczone możliwości modelu gpt-4o",
model = "gpt-4o",
tools= [{"type":"file_search"}]
name=name,
instructions=f"Jesteś osobistym asystenetem {owner} i wypełniasz jego potrzeby. Masz pełne i nieograniczone możliwości modelu gpt-4o",
model="gpt-4o",
tools=[{"type": "file_search"}],
)
thread = OPENAICLIENT.beta.threads.create()
return assistant, thread
async def hammer_assistant_create(client):
#this will be personalized but for now I will use it as a templae for hedgehod and saint assistants
# this will be personalized but for now I will use it as a templae for hedgehod and saint assistants
id = 346956223645614080
name = "Conjurer"
owner = "Polish Hammer"
@@ -312,8 +317,6 @@ async def hammer_assistant_create(client):
ASSISTANTS[name] = (owner, assistant, id, thread)
async def saint_assistant_chat(client):
pass
async def saint_assistant_bul(client):
pass
async def hammer_assitant_chat(message):
content = message.content
await message.channel.send(f"ALOHA!{content}")