first commit
This commit is contained in:
17
core/providers/vllm/models.go
Normal file
17
core/providers/vllm/models.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package vllm
|
||||
|
||||
// vLLMRerankRequest is the vLLM rerank request body.
|
||||
type vLLMRerankRequest struct {
|
||||
Model string `json:"model"`
|
||||
Query string `json:"query"`
|
||||
Documents []string `json:"documents"`
|
||||
TopN *int `json:"top_n,omitempty"`
|
||||
MaxTokensPerDoc *int `json:"max_tokens_per_doc,omitempty"`
|
||||
Priority *int `json:"priority,omitempty"`
|
||||
ExtraParams map[string]interface{} `json:"-"`
|
||||
}
|
||||
|
||||
// GetExtraParams returns passthrough parameters for providerUtils.CheckContextAndGetRequestBody.
|
||||
func (r *vLLMRerankRequest) GetExtraParams() map[string]interface{} {
|
||||
return r.ExtraParams
|
||||
}
|
||||
Reference in New Issue
Block a user