aisuite
aisuite copied to clipboard
Add Tongyi Provider Support
Integrate Tongyi provider into the Python package:
- Implement the
TongyiProviderclass inaisuite/providers/tongyi_provider.py, utilizing thedashscopelibrary. - Add test cases for the
TongyiProviderintests/client/test_client.py, including mocks for the provider within the tests. - Provide usage instructions in
guides/tongyi.md, detailing how to interact with the Alibaba Tongyi model.
Thanks for the PR. Please re-test after the addition of pydantic checks in the codebase. If possible, please add tool calling support as well. If the model uses OpenAI message format, then you can use Mistral or Together as an example how to use an existing base class to do message conversion.
Hi, I've resolved the code conflicts and migrated the integration to use the OpenAI package for interacting with Tongyi's API. The implementation now fully supports tool calling functionality.