Quardo commited on
Commit
06d209a
1 Parent(s): f41b9ef

Updated Space.

Browse files
Files changed (2) hide show
  1. app.py +1 -1
  2. index.html +4 -0
app.py CHANGED
@@ -509,7 +509,7 @@ async def respond(
509
  response = ""
510
  isRequeryNeeded = False
511
  async for token in completion:
512
- response += token['choices'][0]['delta'].get("content", "")
513
  yield f"{prefix}{response}"
514
  for line in response.split('\n'):
515
  try:
 
509
  response = ""
510
  isRequeryNeeded = False
511
  async for token in completion:
512
+ response += token['choices'][0]['delta'].get("content", token['choices'][0]['delta'].get("refusal", ""))
513
  yield f"{prefix}{response}"
514
  for line in response.split('\n'):
515
  try:
index.html CHANGED
@@ -37,6 +37,10 @@
37
  <hr/>
38
  <h2>Updates</h2>
39
  <div>
 
 
 
 
40
  <div>
41
  <strong> - 9. Update.</strong>
42
  <p> * Added a third faketool: search. Now the model can search, via search engine.</p>
 
37
  <hr/>
38
  <h2>Updates</h2>
39
  <div>
40
+ <div>
41
+ <strong> - 10. Update.</strong>
42
+ <p> * Added OpenAI's new response param "refusal".</p>
43
+ </div><hr/>
44
  <div>
45
  <strong> - 9. Update.</strong>
46
  <p> * Added a third faketool: search. Now the model can search, via search engine.</p>