use channel bot id

This commit is contained in:
creamlike1024 committed 2025-05-13 22:23:38 +08:00
1 parent ee7cdae0a8
commit 5e8217db0f
2 files changed
+3 -1

No files matched your search

+2
View File
@@ -240,5 +240,7 @@ func SetupContextForSelectedChannel(c *gin.Context, channel *model.Channel, mode
c.Set("api_version", channel.Other)
case common.ChannelTypeMokaAI:
c.Set("api_version", channel.Other)
case common.ChannelTypeCoze:
c.Set("bot_id", channel.Other)
}
}