Logo
Explore Help
Sign In
admin777/new-api
1
0
Fork 0
You've already forked new-api
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
new-api/relay/channel/xinference/dto.go

12 lines
291 B
Go
Raw Normal View History

feat: support xinference rerank to jina format
2025-03-16 21:06:29 +08:00
package xinference
type XinRerankResponseDocument struct {
🔧 fix(xinference): update Document type to 'any' for flexibility - Changed the type of `Document` in `XinRerankResponseDocument` from `string` to `any` to accommodate various data types. - Updated the `RerankHandler` to handle `Document` as `any`, ensuring proper assignment based on its actual type. These modifications enhance the handling of document data, allowing for greater versatility in response structures.
2025-06-25 18:04:34 +08:00
Document any `json:"document,omitempty"`
feat: support xinference rerank to jina format
2025-03-16 21:06:29 +08:00
Index int `json:"index"`
RelevanceScore float64 `json:"relevance_score"`
}
type XinRerankResponse struct {
Results []XinRerankResponseDocument `json:"results"`
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.1 Page: 79ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API