Skip to content

Update to Mistral Python SDK v1.0.1#10

Open
mor10 wants to merge 15 commits into
github:mainfrom
mor10:fix-mistral-SDK
Open

Update to Mistral Python SDK v1.0.1#10
mor10 wants to merge 15 commits into
github:mainfrom
mor10:fix-mistral-SDK

Conversation

@mor10

@mor10 mor10 commented Aug 12, 2024

Copy link
Copy Markdown

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

egta-e commented Apr 20, 2025

Copy link
Copy Markdown

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