John6666 commited on
Commit
0f330ac
·
verified ·
1 Parent(s): d7056f5

Upload llmdolphin.py

Browse files
Files changed (1) hide show
  1. llmdolphin.py +3 -1
llmdolphin.py CHANGED
@@ -946,15 +946,17 @@ DEFAULT_STATE = {
946
  "dolphin_output_language": llm_languages[0],
947
  }
948
 
 
949
  def get_state(state: dict, key: str):
950
  if key in state.keys(): return state[key]
951
  elif key in DEFAULT_STATE.keys():
952
  print(f"State '{key}' not found. Use dedault value.")
953
  return DEFAULT_STATE[key]
954
  else:
955
- print(f"State '{key}' not found. Use dedault value.")
956
  return None
957
 
 
958
  def set_state(state: dict, key: str, value: Any):
959
  state[key] = value
960
 
 
946
  "dolphin_output_language": llm_languages[0],
947
  }
948
 
949
+
950
  def get_state(state: dict, key: str):
951
  if key in state.keys(): return state[key]
952
  elif key in DEFAULT_STATE.keys():
953
  print(f"State '{key}' not found. Use dedault value.")
954
  return DEFAULT_STATE[key]
955
  else:
956
+ print(f"State '{key}' not found.")
957
  return None
958
 
959
+
960
  def set_state(state: dict, key: str, value: Any):
961
  state[key] = value
962