feat: support Gemini openai compatible api

This commit is contained in:
JustSong
2025-02-16 17:59:39 +08:00
parent 1ce6a226f6
commit 3f421c4f04
8 changed files with 54 additions and 15 deletions

View File

@@ -52,5 +52,6 @@ const (
XunfeiV2
AliBailian
OpenAICompatible
GeminiOpenAICompatible
Dummy
)

View File

@@ -52,6 +52,8 @@ var ChannelBaseURLs = []string{
"https://spark-api-open.xf-yun.com", // 48
"https://dashscope.aliyuncs.com", // 49
"", // 50
"https://generativelanguage.googleapis.com/v1beta/openai/", // 51
}
func init() {