{"object":"error","message":"Message role not recognized","type":"invalid_request_error","param":null,"code":null}
After:
{"id":"cmpl-e3bd5431cc384dab8782254ac0a2f862","object":"chat.completion","created":1703185938,"model":"hf:mgoin/TinyStories-1M-ds","choices":[{"message":{"role":"assistant","content":" \"Welcome to the best friends! I have a special place to you. I"},"finish_reason":"length"}],"usage":{"prompt_tokens":453,"total_tokens":469,"completion_tokens":16}}
The OpenAI
v1/chat/completions
endpoint would fail to properly parse arequest.messages
of theList[Dict]
formatTest
Server command:
Client command:
Before:
After: