Spaces:
Running
Running
Husnain
commited on
Commit
•
5f283da
1
Parent(s):
0d1bd09
♻️ [Refactor] Configure api info with config.json
Browse files- tests/openai.py +3 -3
tests/openai.py
CHANGED
@@ -166,12 +166,12 @@ if __name__ == "__main__":
|
|
166 |
# api.get_models()
|
167 |
api.auth()
|
168 |
messages = [
|
169 |
-
{"role": "system", "content": "
|
170 |
-
{"role": "system", "content": "
|
171 |
{"role": "user", "content": "Repeat my name and my cat's name"},
|
172 |
{
|
173 |
"role": "assistant",
|
174 |
-
"content": "Your name is
|
175 |
},
|
176 |
{"role": "user", "content": "summarize our conversation"},
|
177 |
]
|
|
|
166 |
# api.get_models()
|
167 |
api.auth()
|
168 |
messages = [
|
169 |
+
{"role": "system", "content": "I am Niansuh"},
|
170 |
+
{"role": "system", "content": "I have a cat named Lucky"},
|
171 |
{"role": "user", "content": "Repeat my name and my cat's name"},
|
172 |
{
|
173 |
"role": "assistant",
|
174 |
+
"content": "Your name is Niansuh and your cat's name is Lucky.",
|
175 |
},
|
176 |
{"role": "user", "content": "summarize our conversation"},
|
177 |
]
|