You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File "/opt/lmdeploy/lmdeploy/serve/openai/api_server.py", line 483, in chat_completions_v1
async for res in result_generator:
File "/opt/lmdeploy/lmdeploy/serve/async_engine.py", line 524, in generate
prompt_input = await self._get_prompt_input(prompt,
File "/opt/lmdeploy/lmdeploy/serve/async_engine.py", line 455, in _get_prompt_input
prompt = chat_template.messages2prompt(prompt,
File "/opt/lmdeploy/lmdeploy/model.py", line 237, in messages2prompt
ret += f'{box_map[role]}{content}{eox_map[role]}'
KeyError: 'tool'
The toolrole is in the OpenAI API document.
The text was updated successfully, but these errors were encountered:
Huarong
changed the title
feature: add tool role in BaseChatTemplate as tool response in messages
[Feature] add tool role in BaseChatTemplate as tool response in messages
Dec 30, 2024
lmdeploy/lmdeploy/model.py
Lines 224 to 237 in 9c16443
request payload to
/chat/completions
endpointcurrent error:
The
tool
role is in the OpenAI API document.The text was updated successfully, but these errors were encountered: