|
|
@@ -270,6 +270,8 @@ func (a *Adaptor) GetRequestURL(info *relaycommon.RelayInfo) (string, error) {
|
|
|
// return fmt.Sprintf("%s/api/v3/images/edits", baseUrl), nil
|
|
|
case constant.RelayModeRerank:
|
|
|
return fmt.Sprintf("%s/api/v3/rerank", baseUrl), nil
|
|
|
+ case constant.RelayModeResponses:
|
|
|
+ return fmt.Sprintf("%s/api/v3/responses", baseUrl), nil
|
|
|
case constant.RelayModeAudioSpeech:
|
|
|
if baseUrl == channelconstant.ChannelBaseURLs[channelconstant.ChannelTypeVolcEngine] {
|
|
|
return "wss://openspeech.bytedance.com/api/v1/tts/ws_binary", nil
|
|
|
@@ -323,7 +325,7 @@ func (a *Adaptor) ConvertEmbeddingRequest(c *gin.Context, info *relaycommon.Rela
|
|
|
}
|
|
|
|
|
|
func (a *Adaptor) ConvertOpenAIResponsesRequest(c *gin.Context, info *relaycommon.RelayInfo, request dto.OpenAIResponsesRequest) (any, error) {
|
|
|
- return nil, errors.New("not implemented")
|
|
|
+ return request, nil
|
|
|
}
|
|
|
|
|
|
func (a *Adaptor) DoRequest(c *gin.Context, info *relaycommon.RelayInfo, requestBody io.Reader) (any, error) {
|