chansung commited on
Commit
58a9a0e
1 Parent(s): 6cd7a2d

Update palmapi.py

Browse files
Files changed (1) hide show
  1. palmapi.py +1 -1
palmapi.py CHANGED
@@ -27,7 +27,7 @@ class PaLMChatPromptFmt(PromptFmt):
27
  ping = pingpong.ping[:truncate_size]
28
  pong = pingpong.pong
29
 
30
- if pong is None:
31
  return [
32
  {
33
  "author": "USER",
 
27
  ping = pingpong.ping[:truncate_size]
28
  pong = pingpong.pong
29
 
30
+ if pong is None or pong.strip() == "":
31
  return [
32
  {
33
  "author": "USER",