|
|
@@ -26,7 +26,7 @@ func (a *Adaptor) ConvertGeminiRequest(c *gin.Context, info *relaycommon.RelayIn
|
|
|
}
|
|
|
|
|
|
func (a *Adaptor) ConvertClaudeRequest(*gin.Context, *relaycommon.RelayInfo, *dto.ClaudeRequest) (any, error) {
|
|
|
- return nil, errors.New("codex channel: endpoint not supported")
|
|
|
+ return nil, errors.New("codex channel: /v1/messages endpoint not supported")
|
|
|
}
|
|
|
|
|
|
func (a *Adaptor) ConvertAudioRequest(c *gin.Context, info *relaycommon.RelayInfo, request dto.AudioRequest) (io.Reader, error) {
|
|
|
@@ -41,15 +41,15 @@ func (a *Adaptor) Init(info *relaycommon.RelayInfo) {
|
|
|
}
|
|
|
|
|
|
func (a *Adaptor) ConvertOpenAIRequest(c *gin.Context, info *relaycommon.RelayInfo, request *dto.GeneralOpenAIRequest) (any, error) {
|
|
|
- return nil, errors.New("codex channel: endpoint not supported")
|
|
|
+ return nil, errors.New("codex channel: /v1/chat/completions endpoint not supported")
|
|
|
}
|
|
|
|
|
|
func (a *Adaptor) ConvertRerankRequest(c *gin.Context, relayMode int, request dto.RerankRequest) (any, error) {
|
|
|
- return nil, errors.New("codex channel: endpoint not supported")
|
|
|
+ return nil, errors.New("codex channel: /v1/rerank endpoint not supported")
|
|
|
}
|
|
|
|
|
|
func (a *Adaptor) ConvertEmbeddingRequest(c *gin.Context, info *relaycommon.RelayInfo, request dto.EmbeddingRequest) (any, error) {
|
|
|
- return nil, errors.New("codex channel: endpoint not supported")
|
|
|
+ return nil, errors.New("codex channel: /v1/embeddings endpoint not supported")
|
|
|
}
|
|
|
|
|
|
func (a *Adaptor) ConvertOpenAIResponsesRequest(c *gin.Context, info *relaycommon.RelayInfo, request dto.OpenAIResponsesRequest) (any, error) {
|