mistralai / mistral-common

Apache License 2.0
633 stars 57 forks source link

Fix/adjusting chat completion request import #22

Closed matheus-prandini closed 3 months ago

matheus-prandini commented 3 months ago

Goal

Fixed incorrect import in the example tokenizer notebook (it also needs to be adjusted in the Mistral documentation here: https://docs.mistral.ai/guides/tokenization/).

Before correction: from mistral_common.tokens.instruct.normalize import ChatCompletionRequest

After correction: from mistral_common.protocol.instruct.request import ChatCompletionRequest