feat: playground

This commit is contained in:
1808837298@qq.com committed 2024-09-26 00:59:09 +08:00
1 parent 85dfe50399
commit 07fa9205cb
22 files changed
+3829 -1850

No files matched your search

+1 -1
View File
@@ -42,7 +42,7 @@ const (
func Path2RelayMode(path string) int {
relayMode := RelayModeUnknown
if strings.HasPrefix(path, "/v1/chat/completions") {
if strings.HasPrefix(path, "/v1/chat/completions") || strings.HasPrefix(path, "/pg/chat/completions") {
relayMode = RelayModeChatCompletions
} else if strings.HasPrefix(path, "/v1/completions") {
relayMode = RelayModeCompletions