Update app.py
Browse files
app.py
CHANGED
@@ -114,7 +114,7 @@ def chat_gpt_ep(content: Text = None):
|
|
114 |
url = 'https://api.openai.com/v1/chat/completions'
|
115 |
obj = json.loads(content.content)
|
116 |
data = {
|
117 |
-
"model": obj['model']
|
118 |
"messages": obj['messages']
|
119 |
}
|
120 |
print("data = \n", data)
|
|
|
114 |
url = 'https://api.openai.com/v1/chat/completions'
|
115 |
obj = json.loads(content.content)
|
116 |
data = {
|
117 |
+
"model": obj['model'],
|
118 |
"messages": obj['messages']
|
119 |
}
|
120 |
print("data = \n", data)
|