mirror of
https://github.com/hwchase17/langchain.git
synced 2026-06-09 10:17:00 +00:00
**Description:** Added ability to set `prefix` attribute to prevent error : ``` httpx.HTTPStatusError: Error response 400 while fetching https://api.mistral.ai/v1/chat/completions: {"object":"error","message":"Expected last role User or Tool (or Assistant with prefix True) for serving but got assistant","type":"invalid_request_error","param":null,"code":null} ``` Co-authored-by: Sylvain DEPARTE <sylvain.departe@wizbii.com>