mirror of
https://github.com/JasonYANG170/CodeGeeX4.git
synced 2024-11-23 12:16:33 +00:00
fix an index error
This commit is contained in:
parent
0963521071
commit
feaa9d6b23
|
@ -59,7 +59,7 @@ class CodegeexChatModel:
|
|||
try:
|
||||
response, _ = self.model.chat(
|
||||
self.tokenizer,
|
||||
query=request.messages[0].content,
|
||||
query=request.messages[-1].content,
|
||||
history=[msg.model_dump() for msg in request.messages[:-1]],
|
||||
max_new_tokens=request.max_tokens,
|
||||
temperature=request.temperature,
|
||||
|
|
Loading…
Reference in New Issue
Block a user