Skip to content

Conversation

@mor10
Copy link

@mor10 mor10 commented Aug 12, 2024

Update Mistral Python SDK to v1.0.1 and refactor all Mistral cookbooks and Python samples to match new version.

Main changes:

  • mistralai version updated in requirements.txt
  • Single import of Mistral provides all functionality
  • Mistral() method has no endpoint parameter. Instead uses server_url
  • Chat responses come from client.chat.complete() method
  • Streaming responses come from client.chat.stream() method
  • Chat messages updated to JSON format
  • Function calling requires Mistral-large-2407
  • Streaming response object handling has been updated for better error avoidance

@egta-e
Copy link

egta-e commented Apr 20, 2025

nicr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants