mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-11-21 15:36:49 +08:00
feat: support /v1/rerank router
This commit is contained in:
10
relay/model/rerank.go
Normal file
10
relay/model/rerank.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package model
|
||||
|
||||
type RerankRequest struct {
|
||||
Model string `json:"model"`
|
||||
Documents []string `json:"documents"`
|
||||
Query string `json:"query"`
|
||||
TopN *int `json:"top_n,omitempty"`
|
||||
MaxChunksPerDoc *int `json:"max_chunks_per_doc,omitempty"`
|
||||
ReturnDocuments *bool `json:"return_documents,omitempty"`
|
||||
}
|
||||
Reference in New Issue
Block a user