dify icon indicating copy to clipboard operation
dify copied to clipboard

Add rerank model type for LocalAI provider

Open thiner opened this issue 1 year ago • 0 comments

Description

This PR extends API support for LocalAI backend. Below API will be added:

  • rerank

This PR fixes #3524

Type of Change

Please delete options that are not relevant.

  • [x] New feature (non-breaking change which adds functionality)

How Has This Been Tested?

First draft version, haven't gotten resources to test it.

  • [ ] TODO

Suggested Checklist:

  • [x] I have performed a self-review of my own code
  • [x] I have commented my code, particularly in hard-to-understand areas
  • [x] My changes generate no new warnings
  • [x] I ran dev/reformat(backend) and cd web && npx lint-staged(frontend) to appease the lint gods
  • [ ] optional I have made corresponding changes to the documentation
  • [ ] optional I have added tests that prove my fix is effective or that my feature works
  • [ ] optional New and existing unit tests pass locally with my changes

thiner avatar Apr 28 '24 09:04 thiner