mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-08-29 21:26:05 +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
|
# # Add history conversation
|
||||||
hist = []
|
hist = []
|
||||||
once_conversation = []
|
once_conversation = []
|
||||||
for message in messages:
|
for message in messages[:-2]:
|
||||||
if len(message) <= 0:
|
if len(message) <= 0:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
@ -51,7 +51,7 @@ def chatglm_generate_stream(
|
|||||||
# else:
|
# else:
|
||||||
# once_conversation.append(f"""###system:{message} """)
|
# once_conversation.append(f"""###system:{message} """)
|
||||||
|
|
||||||
query = messages[-1].split("human:")[1]
|
query = messages[-2].split("human:")[1]
|
||||||
print("Query Message: ", query)
|
print("Query Message: ", query)
|
||||||
# output = ""
|
# output = ""
|
||||||
# i = 0
|
# i = 0
|
||||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user