feat: add analyticdb as model provider
Checklist:
[!IMPORTANT]
Please review the checklist below before submitting your pull request.
- [x] Please open an issue before creating a PR or link to an existing issue
- [x] I have performed a self-review of my own code
- [x] I have commented my code, particularly in hard-to-understand areas
- [x] I ran
dev/reformat(backend) andcd web && npx lint-staged(frontend) to appease the lint gods
Description
This pull request introduces support for AnalyticDB as a new model provider. Currently, AnalyticDB offers two reranking models, with plans to introduce embedding models in the future. This addition will allow customers who have purchased AnalyticDB instances to easily call these models.
Type of Change
- [ ] Bug fix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
- [ ] This change requires a documentation update, included: Dify Document
- [ ] Improvement, including but not limited to code refactoring, performance optimization, and UI/UX improvement
- [ ] Dependency upgrade
Testing Instructions
The changes were tested using manually filled credentials.
Please fix the lint and resolve the deps
@crazywoola Thanks, I've fixed the linting issue and the changes have passed CI.
@crazywoola The conflicts have been resolved. Could you please review and approve this PR?
Hello, it seems to have conflicts again :( sorry for this. And you need to add tests for new providers.
@crazywoola Sorry for missing the test, it's been added now and conflicts have been resolved.
@crazywoola Conflicts have been resolved again.I noticed that it hasn't been reviewed in a while. Could you please take a look when you have a moment? Thank you!
Please be aware that we are going to roll out the v1.0.0 changes related to models runtimes and tools will not take effect above v1.0, please make sure adapt the changes to https://github.com/langgenius/dify-official-plugins as well. :)