fix: claude tool call format #795 #766

This commit is contained in:
1808837298@qq.com committed 2025-02-26 23:40:16 +08:00
1 parent c3b0e57ea4
commit 23de62ec0d
4 files changed
+14 -8

No files matched your search

+3
View File
@@ -30,6 +30,7 @@ const (
APITypeMokaAI
APITypeVolcEngine
APITypeBaiduV2
APITypeOpenRouter
APITypeDummy // this one is only for count, do not add any channel after this
)
@@ -86,6 +87,8 @@ func ChannelType2APIType(channelType int) (int, bool) {
apiType = APITypeVolcEngine
case common.ChannelTypeBaiduV2:
apiType = APITypeBaiduV2
case common.ChannelTypeOpenRouter:
apiType = APITypeOpenRouter
}
if apiType == -1 {
return APITypeOpenAI, false