Tuchuanhuhuhu commited on
Commit
5abb660
1 Parent(s): 3545d4e
Files changed (1) hide show
  1. chat_func.py +4 -1
chat_func.py CHANGED
@@ -293,6 +293,8 @@ def predict(
293
  .replace("{query}", inputs)
294
  .replace("{web_results}", "\n\n".join(web_results))
295
  )
 
 
296
 
297
  if len(openai_api_key) != 51:
298
  status_text = standard_error_msg + no_apikey_msg
@@ -338,7 +340,8 @@ def predict(
338
  top_p,
339
  temperature,
340
  selected_model,
341
- fake_input=old_inputs
 
342
  )
343
  yield chatbot, history, status_text, all_token_counts
344
 
 
293
  .replace("{query}", inputs)
294
  .replace("{web_results}", "\n\n".join(web_results))
295
  )
296
+ else:
297
+ link_references = ""
298
 
299
  if len(openai_api_key) != 51:
300
  status_text = standard_error_msg + no_apikey_msg
 
340
  top_p,
341
  temperature,
342
  selected_model,
343
+ fake_input=old_inputs,
344
+ display_append=link_references
345
  )
346
  yield chatbot, history, status_text, all_token_counts
347