parent
a1202a31ed
commit
9c38d181d4
1 changed files with 1 additions and 7 deletions
|
@ -23,13 +23,7 @@ parser.add_argument("--port", type=int, help="Set the port to listen.(default: 8
|
|||
args = parser.parse_args()
|
||||
|
||||
def is_present(json, key):
|
||||
try:
|
||||
buf = json[key]
|
||||
except KeyError:
|
||||
return False
|
||||
return True
|
||||
|
||||
|
||||
return key in json
|
||||
|
||||
#convert chat to prompt
|
||||
def convert_chat(messages):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue