swarmauri / swarmauri-sdk

https://swarmauri.com
Apache License 2.0
60 stars 34 forks source link

[Test Case Failure]: tests/unit/llms/MistralModel_unit_test.py #698

Open 3rd-Son opened 2 days ago

3rd-Son commented 2 days ago

Test Case

tests/unit/llms/MistralModel_unit_test.py

Pytest Logs

FAILED tests/unit/llms/MistralModel_unit_test.py::test_astream[open-mixtral-8x7b] - TypeError: 'async_generator' object is not iterable
FAILED tests/unit/llms/MistralModel_unit_test.py::test_astream[open-mixtral-8x22b] - TypeError: 'async_generator' object is not iterable
FAILED tests/unit/llms/MistralModel_unit_test.py::test_astream[mistral-small-latest] - TypeError: 'async_generator' object is not iterable
FAILED tests/unit/llms/MistralModel_unit_test.py::test_astream[mistral-medium-latest] - TypeError: 'async_generator' object is not iterable
FAILED tests/unit/llms/MistralModel_unit_test.py::test_astream[mistral-large-latest] - TypeError: 'async_generator' object is not iterable
FAILED tests/unit/llms/MistralModel_unit_test.py::test_astream[open-mistral-nemo] - TypeError: 'async_generator' object is not iterable
FAILED tests/unit/llms/MistralModel_unit_test.py::test_astream[codestral-latest] - TypeError: 'async_generator' object is not iterable
FAILED tests/unit/llms/MistralModel_unit_test.py::test_astream[open-codestral-mamba] - TypeError: 'async_generator' object is not iterable
FAILED tests/unit/llms/MistralToolModel_unit_test.py::test_batch[mistral-small-latest] - mistralai.models.sdkerror.SDKError: API error occurred: Status 400
{"object":"error","message":"Expected last role User or Tool (or Assistant with prefix True) for serving but got assistant","type":"invalid_request_error","param":null,"code":null}
FAILED tests/unit/llms/MistralToolModel_unit_test.py::test_astream[open-mixtral-8x22b] - TypeError: 'async_generator' object is not iterable
FAILED tests/unit/llms/MistralToolModel_unit_test.py::test_astream[mistral-small-latest] - TypeError: 'async_generator' object is not iterable
FAILED tests/unit/llms/MistralToolModel_unit_test.py::test_astream[mistral-large-latest] - TypeError: 'async_generator' object is not iterable
FAILED tests/unit/llms/MistralToolModel_unit_test.py::test_astream[open-mistral-nemo] - TypeError: 'async_generator' object is not iterable
FAILED tests/unit/llms/MistralToolModel_unit_test.py::test_abatch[mistral-small-latest] - mistralai.models.sdkerror.SDKError: API error occurred: Status 400
{"object":"error","message":"Expected last role User or Tool (or Assistant with prefix True) for serving but got assistant","type":"invalid_request_error","param":null,"code":null}

Root Cause

TypeError: 'async_generator' object is not iterable

Potential Solutions

No response

Additional Context (optional)

No response

Type of Test Case

Unit

3rd-Son commented 19 hours ago

working on this