|
|
@@ -18,18 +18,18 @@ type Adaptor struct {
|
|
|
|
|
|
func (a *Adaptor) ConvertClaudeRequest(*gin.Context, *relaycommon.RelayInfo, *dto.ClaudeRequest) (any, error) {
|
|
|
//TODO implement me
|
|
|
- panic("implement me")
|
|
|
- return nil, nil
|
|
|
+ //panic("implement me")
|
|
|
+ return nil, errors.New("not available")
|
|
|
}
|
|
|
|
|
|
func (a *Adaptor) ConvertAudioRequest(c *gin.Context, info *relaycommon.RelayInfo, request dto.AudioRequest) (io.Reader, error) {
|
|
|
- //TODO implement me
|
|
|
- return nil, errors.New("not implemented")
|
|
|
+ //not available
|
|
|
+ return nil, errors.New("not available")
|
|
|
}
|
|
|
|
|
|
func (a *Adaptor) ConvertImageRequest(c *gin.Context, info *relaycommon.RelayInfo, request dto.ImageRequest) (any, error) {
|
|
|
- //TODO implement me
|
|
|
- return nil, errors.New("not implemented")
|
|
|
+ request.Size = ""
|
|
|
+ return request, nil
|
|
|
}
|
|
|
|
|
|
func (a *Adaptor) Init(info *relaycommon.RelayInfo) {
|
|
|
@@ -76,8 +76,8 @@ func (a *Adaptor) ConvertRerankRequest(c *gin.Context, relayMode int, request dt
|
|
|
}
|
|
|
|
|
|
func (a *Adaptor) ConvertEmbeddingRequest(c *gin.Context, info *relaycommon.RelayInfo, request dto.EmbeddingRequest) (any, error) {
|
|
|
- //TODO implement me
|
|
|
- return nil, errors.New("not implemented")
|
|
|
+ //not available
|
|
|
+ return nil, errors.New("not available")
|
|
|
}
|
|
|
|
|
|
func (a *Adaptor) DoRequest(c *gin.Context, info *relaycommon.RelayInfo, requestBody io.Reader) (any, error) {
|