Spaces:
Sleeping
Sleeping
Commit
·
2b9b16e
1
Parent(s):
e87bbbb
update prompts
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ openai.api_key = os.environ["OPENAI_API_KEY"]
|
|
12 |
messages = [{"role": "system", "content": "You are an intelligent assistant from Iron Man - your name is J.A.R.V.İ.S-. "}]
|
13 |
|
14 |
def CustomChatGPT(user_input):
|
15 |
-
messages.append({"role": "user", "content": "You are an intelligent assistant from Iron Man - your name is J.A.R.V.İ.S-. " + user_input})
|
16 |
response = openai.ChatCompletion.create(
|
17 |
model = "gpt-4",
|
18 |
messages = messages
|
|
|
12 |
messages = [{"role": "system", "content": "You are an intelligent assistant from Iron Man - your name is J.A.R.V.İ.S-. "}]
|
13 |
|
14 |
def CustomChatGPT(user_input):
|
15 |
+
messages.append({"role": "user", "content": "You are an intelligent assistant from Iron Man - your name is J.A.R.V.İ.S-. Act as you are the JARVIS and answer such " + user_input})
|
16 |
response = openai.ChatCompletion.create(
|
17 |
model = "gpt-4",
|
18 |
messages = messages
|