aisuite icon indicating copy to clipboard operation
aisuite copied to clipboard

Add Tongyi Provider Support

Open NewToolAI opened this issue 11 months ago • 2 comments

Integrate Tongyi provider into the Python package:

  • Implement the TongyiProvider class in aisuite/providers/tongyi_provider.py, utilizing the dashscope library.
  • Add test cases for the TongyiProvider in tests/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.

NewToolAI avatar Dec 01 '24 13:12 NewToolAI

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.

rohitprasad15 avatar Jan 24 '25 06:01 rohitprasad15

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.

NewToolAI avatar Feb 04 '25 07:02 NewToolAI