airsltd commited on
Commit
a378d77
·
verified ·
1 Parent(s): f2f44f6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -2
app.py CHANGED
@@ -162,8 +162,8 @@ def openai_chat_completions(request: dict):
162
 
163
  completion_id = f"chatcmpl-{int(time.time())}"
164
  created = int(time.time())
165
-
166
- return {
167
  "id": completion_id,
168
  "object": "chat.completion",
169
  "created": created,
@@ -184,6 +184,11 @@ def openai_chat_completions(request: dict):
184
  "total_tokens": 0
185
  }
186
  }
 
 
 
 
 
187
 
188
  # Initialize model on startup
189
  @app.on_event("startup")
 
162
 
163
  completion_id = f"chatcmpl-{int(time.time())}"
164
  created = int(time.time())
165
+
166
+ return_json = {
167
  "id": completion_id,
168
  "object": "chat.completion",
169
  "created": created,
 
184
  "total_tokens": 0
185
  }
186
  }
187
+ print('\n\n return_json')
188
+ print(return_json)
189
+ print('return over! \n\n')
190
+
191
+ return return_json
192
 
193
  # Initialize model on startup
194
  @app.on_event("startup")