mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-08-28 21:02:08 +00:00
model server fix message model
This commit is contained in:
parent
084656245e
commit
98a7bf93f6
@ -35,7 +35,7 @@ def chatglm_generate_stream(
|
||||
# # Add history conversation
|
||||
hist = []
|
||||
once_conversation = []
|
||||
for message in messages:
|
||||
for message in messages[:-2]:
|
||||
if len(message) <= 0:
|
||||
continue
|
||||
|
||||
@ -51,7 +51,7 @@ def chatglm_generate_stream(
|
||||
# else:
|
||||
# once_conversation.append(f"""###system:{message} """)
|
||||
|
||||
query = messages[-1].split("human:")[1]
|
||||
query = messages[-2].split("human:")[1]
|
||||
print("Query Message: ", query)
|
||||
# output = ""
|
||||
# i = 0
|
||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user