Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions nephthys/events/message_creation.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,16 +312,19 @@ async def generate_ticket_title(text: str):
if not env.ai_client:
return "No title available from AI."

model = "qwen/qwen3-32b"
model = "openai/gpt-oss-120b"
try:
response = await env.ai_client.chat.completions.create(
model=model,
messages=[
{
"role": "system",
"content": (
"You are a helpful assistant that helps organise tickets for Hack Club's support team. You're going to take in a message and give it a title. "
"You will return no other content. Do *NOT* use title case. Avoid quote marks. Even if it's silly please summarise it. Use no more than 7 words, but as few as possible."
"You are a helpful assistant that helps organise tickets for Hack Club's support team. You're going to take in a message and give it a title."
"You will return no other content. Do NOT use title case but use capital letter at start of sentence + use capital letters for terms/proper nouns."
"Avoid quote marks. Even if it's silly please summarise it. Use no more than 7 words, but as few as possible"
"When mentioning Flavortown, do *NOT* change it to 'flavor town' or 'flavour town'. Hack Club should *NOT* be changed to 'hackclub'."
"Hackatime, Flavortown, and Hack Club should always be capitalized correctly. Same goes for terms like VSCode, PyCharm, API, and GitHub."
),
},
{
Expand Down