-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Python : #6499 Initial Commit for Mistral Connector #6921
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
Python : #6499 Initial Commit for Mistral Connector #6921
Conversation
Python 3.10 Test Coverage Report •
Python 3.10 Unit Test Overview
|
||||||||||||||||||||||||||||||||||||||||
|
@microsoft-github-policy-service agree |
moonbox3
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is looking nice. Thank you for taking on the work and for your contribution.
python/semantic_kernel/connectors/ai/mistral_ai/settings/mistral_ai_settings.py
Show resolved
Hide resolved
...l/connectors/ai/mistral_ai/prompt_execution_settings/mistral_ai_prompt_execution_settings.py
Outdated
Show resolved
Hide resolved
python/semantic_kernel/connectors/ai/mistral_ai/settings/mistral_ai_settings.py
Outdated
Show resolved
Hide resolved
python/semantic_kernel/connectors/ai/mistral_ai/services/mistral_ai_chat_completion.py
Outdated
Show resolved
Hide resolved
|
Can you please comment on the following work item so that I can assign it to you? Thank you. |
…nmoeller/semantic-kernel into issue-6499-Mistral-Ai-Connector
eavanvalkenburg
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some initial comments, seems like their design is very similar to OpenAI, I do not believe that that means we should reuse code, we don't want to get into a situation where OpenAI or Mistral changes something and we have to re-separate code!
...l/connectors/ai/mistral_ai/prompt_execution_settings/mistral_ai_prompt_execution_settings.py
Outdated
Show resolved
Hide resolved
python/semantic_kernel/connectors/ai/mistral_ai/services/mistral_ai_chat_completion.py
Outdated
Show resolved
Hide resolved
python/semantic_kernel/connectors/ai/mistral_ai/services/mistral_ai_handler.py
Outdated
Show resolved
Hide resolved
python/semantic_kernel/connectors/ai/mistral_ai/services/mistral_ai_chat_completion.py
Outdated
Show resolved
Hide resolved
python/semantic_kernel/connectors/ai/mistral_ai/services/mistral_ai_config_base.py
Outdated
Show resolved
Hide resolved
python/semantic_kernel/connectors/ai/mistral_ai/settings/mistral_ai_settings.py
Outdated
Show resolved
Hide resolved
python/tests/integration/completions/test_mistralai_chat_service.py
Outdated
Show resolved
Hide resolved
|
With seeing this #7035 here, it looks like @TaoChenOSU is also going for an implementation of the function calling inside the connector. If we both try to implement shared Function Calling Code, this will probably result into merge conflicts. I think i will close this and will submit a new PR which is very lightweight and easy to understand for the Mistral Connector. |
Motivation and Context
To enable Mistral Models with Semantic Kernel, there was the issue Python: Add Mistral AI Connector #6499 in the Backlog to add a MistralAI Connector
It solves the problem, that semantic kernel is not yet integrated with MistralAI
The scenario is to use different connector than HF,OpenAI or AzureOpenAI. When User's want to use Mistral they can easliy integrate it now
Python: Add Mistral AI Connector #6499
Description
The changes made are designed by the open_ai connector, i tried to stay as close as possible to the structure.
For the integration i installed the mistral python package in the repository.
I added the following Classes :
To test the changes with the tests please add MISTRALAI_API_KEY as Enviorment Variable
From a design decision i moved the processing of Functions from Connectors to the ChatCompletionClientBaseClass
What is integrated yet :
Contribution Checklist