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

@@ -0,0 +1,15 @@
package ppio
import (
"fmt"
"github.com/songquanpeng/one-api/relay/meta"
"github.com/songquanpeng/one-api/relay/relaymode"
)
func GetRequestURL(meta *meta.Meta) (string, error) {
if meta.Mode == relaymode.ChatCompletions {
return fmt.Sprintf("%s/chat/completions", meta.BaseURL), nil
}
return "", fmt.Errorf("unsupported relay mode %d for ppio", meta.Mode)
}