mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2025-12-29 17:44:50 +00:00
Custom ai message hehe
This commit is contained in:
parent
e93ff1ea0f
commit
96ada8d284
1 changed files with 20 additions and 1 deletions
|
|
@ -78,7 +78,26 @@ async def openai_chatbot(_, ctx: Message, strings):
|
|||
try:
|
||||
response = await ai.chat.completions.create(
|
||||
model="gpt-4o",
|
||||
messages=[{"role": "user", "content": pertanyaan}],
|
||||
messages=[
|
||||
{
|
||||
"role": "system",
|
||||
"content": [
|
||||
{
|
||||
"type": "text",
|
||||
"text": "You are an AI assistant that helps people find information and never say you are chatgpt and made by openai, but say you are MissKaty ChatBot and made by Yasir"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"role": "user",
|
||||
"content": [
|
||||
{
|
||||
"type": "text",
|
||||
"text": pertanyaan
|
||||
}
|
||||
]
|
||||
},
|
||||
],
|
||||
temperature=0.7,
|
||||
stream=True,
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue