feat: add PPIO as model provider

This commit is contained in:
saikidev
2025-02-13 17:00:04 +08:00
parent a82be00fc1
commit 37e55d014c
8 changed files with 57 additions and 1 deletions

View File

@@ -3,6 +3,7 @@ package openai
import (
"errors"
"fmt"
"github.com/songquanpeng/one-api/relay/adaptor/ppio"
"io"
"net/http"
"strings"
@@ -59,6 +60,8 @@ func (a *Adaptor) GetRequestURL(meta *meta.Meta) (string, error) {
return baiduv2.GetRequestURL(meta)
case channeltype.AliBailian:
return alibailian.GetRequestURL(meta)
case channeltype.PPIO:
return ppio.GetRequestURL(meta)
default:
return GetFullRequestURL(meta.BaseURL, meta.RequestURLPath, meta.ChannelType), nil
}