mistralai / client-python

Python client library for Mistral AI platform
Apache License 2.0
485 stars 106 forks source link

Added the stop parameter to chat completion functions. #119

Closed ikarth closed 4 months ago

ikarth commented 4 months ago

The Mistral API supports stop tokens on the chat completion endpoint, but the library does not. This fixes issue #41 and adds the stop parameter.

ikarth commented 4 months ago

Documentation in the API: https://docs.mistral.ai/capabilities/completion/#other-useful-features

ikarth commented 4 months ago

Closing for further testing first.