diff --git a/lmdeploy/model.py b/lmdeploy/model.py index 2777d600f7..3cf5579512 100644 --- a/lmdeploy/model.py +++ b/lmdeploy/model.py @@ -1022,7 +1022,7 @@ def messages2prompt(self, if message['role'] == 'tool': if index == 0 or messages[index - 1]['role'] != 'tool': ret += f'{self.user}' - ret += f"\n{message['name']}:{message['content']}\n\n" + ret += f"\n{message['content']}\n\n" if index == len(messages) - 1 or messages[index + 1]['role'] != 'tool': ret += f'{self.eoh}'