Skip to content

Conversation

@nmoeller
Copy link
Contributor

@nmoeller nmoeller commented Jul 10, 2024

Motivation and Context

  1. I saw that you are having spikes regarding enabling MyPy
  2. On #Python: #6499 Mistral AI Chat Completion #7049 i had the Liskov Principle commented
  3. In Python: mypy and tests for OpenAI #7144 is saw how you plan to solve this so i decided to adjust the mistral connector to this

Description

The PR contains changes to be compliant to MyPy in Mistral AI Connector.
Changes input Parameter for MistralAIChatCompletion from MistralAIPromptExecutionSettings to PromptExecutionSettings.
Adding Test Cases for MistralAIPromptExecutionSettings and PromptExecutionSettings.

image

Tasks

  • Changes input Parameter for Liskov
  • Settings conversion
  • Adjust TestCases to 100%

Contribution Checklist

@nmoeller nmoeller requested a review from a team as a code owner July 10, 2024 07:31
@nmoeller nmoeller changed the title MyPy Fix for MistralAI Connector Python : CQ MyPy Fix for MistralAI Connector Jul 10, 2024
@markwallace-microsoft markwallace-microsoft added the python Pull requests for the Python Semantic Kernel label Jul 10, 2024
@markwallace-microsoft
Copy link
Member

markwallace-microsoft commented Jul 10, 2024

Py3.10 Test Coverage

Python 3.10 Test Coverage Report •
FileStmtsMissCoverMissing
TOTAL682756392% 
report-only-changed-files is enabled. No files were changed during this commit :)

Python 3.10 Unit Test Overview

Tests Skipped Failures Errors Time
1720 1 💤 0 ❌ 0 🔥 23.936s ⏱️

@moonbox3 moonbox3 added this pull request to the merge queue Jul 11, 2024
Merged via the queue into microsoft:main with commit 6944914 Jul 11, 2024
@nmoeller nmoeller deleted the features/mistralai-mypy-fix branch July 12, 2024 05:27
LudoCorporateShark pushed a commit to LudoCorporateShark/semantic-kernel that referenced this pull request Aug 25, 2024
### Motivation and Context
1. I saw that you are having spikes regarding enabling MyPy
2. On #microsoft#7049  i had the Liskov Principle commented
3. In microsoft#7144 is saw how you plan to solve this so i decided to adjust the
mistral connector to this

### Description

The PR contains changes to be compliant to MyPy in Mistral AI Connector.
Changes input Parameter for MistralAIChatCompletion from
MistralAIPromptExecutionSettings to PromptExecutionSettings.
Adding Test Cases for MistralAIPromptExecutionSettings and
PromptExecutionSettings.


![image](https://github.com/microsoft/semantic-kernel/assets/23048106/5822896e-17d1-4d68-9348-da6765ac3527)


### Tasks

- [x] Changes input Parameter for Liskov
- [x] Settings conversion
- [x] Adjust TestCases to 100%

### Contribution Checklist
<!-- Before submitting this PR, please make sure: -->

- [x] The code builds clean without any errors or warnings
- [x] The PR follows the [SK Contribution
Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [x] All unit tests pass, and I have added new tests where possible
- [x] I didn't break anyone 😄

---------

Co-authored-by: Nico Möller <nicomoller@microsoft.com>
Co-authored-by: Evan Mattson <35585003+moonbox3@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

python Pull requests for the Python Semantic Kernel

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

6 participants