Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to Mistral Python SDK v1.0.1 #10

Open
wants to merge 15 commits into
base: main
Choose a base branch
from

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

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.

1 participant