yangtb24 commited on
Commit
be10079
·
verified ·
1 Parent(s): 37ad876

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -0
app.py CHANGED
@@ -344,6 +344,12 @@ def handsome_chat_completions():
344
  ]
345
  }
346
  yield f"data: {json.dumps(message_data)}\n\n".encode("utf-8")
 
 
 
 
 
 
347
  yield f"data: [DONE]\n\n".encode("utf-8")
348
  return Response(
349
  stream_with_context(generate_canned_stream()),
@@ -383,7 +389,13 @@ def handsome_chat_completions():
383
  }
384
  ]
385
  }
 
 
 
 
 
386
  yield f"data: {json.dumps(message_data)}\n\n".encode("utf-8")
 
387
  yield f"data: [DONE]\n\n".encode("utf-8")
388
  return Response(
389
  stream_with_context(generate_canned_stream()),
 
344
  ]
345
  }
346
  yield f"data: {json.dumps(message_data)}\n\n".encode("utf-8")
347
+
348
+ model_data = {
349
+ "model_name": model_name
350
+ }
351
+
352
+ yield f"data: {json.dumps(model_data)}\n\n".encode("utf-8")
353
  yield f"data: [DONE]\n\n".encode("utf-8")
354
  return Response(
355
  stream_with_context(generate_canned_stream()),
 
389
  }
390
  ]
391
  }
392
+
393
+ model_data = {
394
+ "model_name": model_name
395
+ }
396
+
397
  yield f"data: {json.dumps(message_data)}\n\n".encode("utf-8")
398
+ yield f"data: {json.dumps(model_data)}\n\n".encode("utf-8")
399
  yield f"data: [DONE]\n\n".encode("utf-8")
400
  return Response(
401
  stream_with_context(generate_canned_stream()),