mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-11-21 07:26:47 +08:00
feat: support /v1/rerank router
This commit is contained in:
@@ -11,4 +11,5 @@ const (
|
||||
AudioSpeech
|
||||
AudioTranscription
|
||||
AudioTranslation
|
||||
Rerank
|
||||
)
|
||||
|
||||
@@ -24,6 +24,9 @@ func GetByPath(path string) int {
|
||||
relayMode = AudioTranscription
|
||||
} else if strings.HasPrefix(path, "/v1/audio/translations") {
|
||||
relayMode = AudioTranslation
|
||||
} else if strings.HasPrefix(path, "/v1/rerank") {
|
||||
relayMode = Rerank
|
||||
}
|
||||
|
||||
return relayMode
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user