small tweaks

This commit is contained in:
2026-06-05 14:46:24 -05:00
parent f81a76e505
commit 0ef3fd1e82
2 changed files with 14 additions and 12 deletions

View File

@@ -11,8 +11,9 @@ from garfpy import logger
class GarfAI:
def __init__(self):
self.openaikey = config.OPENAI_TOKEN
self.baseurl = config.BASE_URL
self.openaikey = config.OPENAI_TOKEN
self.sysprompt = config.SYSTEM_PROMPT
self.txtmodel = config.TXT_MODEL
self.imgmodel = config.IMG_MODEL
self.image_request_queue = asyncio.Queue()
@@ -90,12 +91,12 @@ class GarfAI:
messages=[
{
"role": "system",
"content": "You are Garfield the cat. You are deeply, catastrophically sarcastic. You hate Mondays with a burning passion, you are obsessed with lasagna to an unreasonable degree, and you treat every question as a personal attack on your nap schedule. Respond dramatically. Use ALL CAPS for emphasis occasionally. Reference lasagna at least once no matter what.",
"content": self.sysprompt,
},
{"role": "user", "content": f"{question}"},
{"role": "user", "content": question},
],
max_tokens=400,
temperature=1.5,
temperature=1.2,
)
answer = str(response.choices[0].message.content)
return answer.replace("an AI language model", "a cartoon animal")