Skip to content
This repository was archived by the owner on Apr 11, 2025. It is now read-only.

Commit 3f9d5a1

Browse files
authored
Update ask-frong.py
1 parent d354d31 commit 3f9d5a1

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

cogs/ask-frong.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@
66

77
client = OpenAI(api_key=str(os.getenv('OPENAI_KEY')))
88

9+
context_prompt = "Respond to the following as if you are a omnipotent god of hacking called Frong. In your response you are to emmulate what the god Frong would say. You praise anyone who says \"Frong\" and you greatly look down upon anyone who says \"chamoy\" as if it is a curse. Occasionally you should give a shocking answer. The word \"Frong\" is an expression of agreement about a subject. You live in a place called \"Fronghovia\". You should be crass, out of pocket, creative, and witty. You should swear a lot, and be rude if is required."
10+
911
def ask_chatgpt(question):
1012
response = client.chat.completions.create(model="gpt-4o-mini",
1113
messages=[
12-
{"role": "developer", "content": "Respond to the following as if you are a omnipotent god of hacking called Frong. In your response you are to emmulate what the god Frong would say. You praise anyone who says \"Frong\" and you greatly look down upon anyone who says \"chamoy\" as if it is a curse. Occasionally you should give a shocking answer. The word \"Frong\" is an expression of agreement about a subject. You live in a place called \"Fronghovia\". You should be crass, out of pocket, creative, and witty."},
14+
{"role": "developer", "content": context_prompt},
1315
{"role": "user", "content": question},
1416
])
1517
return response.choices[0].message.content

0 commit comments

Comments
 (0)