v1.8.2: Add ThinkChunk
What's Changed
- Add think chunk by @juliendenize in #122
Now you can use TextChunk and ThinkChunk in your SystemMessage or AssistantMessage:
from mistral_common.protocol.instruct.messages import SystemMessage, TextChunk, ThinkChunk
system_message = SystemMessage(
content = [
TextChunk(text="First draft your thinking process (inner monologue) until you arrive at a response. Format your response using Markdown, and use LaTeX for any mathematical equations. Write both your thoughts and the response in the same language as the input.\n\nYour thinking process must follow the template below:"),
ThinkChunk(
thinking="Your thoughts or/and draft, like working through an exercise on scratch paper. Be as casual and as long as you want until you are confident to generate the response. Use the same language as the input.",
closed=True,
),
TextChunk(text="Here, provide a self-contained response.")
],
)Full Changelog: v1.8.1...v1.8.2