feat: enable thinking mode on ali thinking model

This commit is contained in:
feitianbubu
2025-08-06 22:58:36 +08:00
parent 15c11bfe51
commit ea7fd9875b
3 changed files with 13 additions and 4 deletions
+3
View File
@@ -225,6 +225,9 @@ func GenRelayInfo(c *gin.Context) *RelayInfo {
userId := common.GetContextKeyInt(c, constant.ContextKeyUserId)
tokenUnlimited := common.GetContextKeyBool(c, constant.ContextKeyTokenUnlimited)
startTime := common.GetContextKeyTime(c, constant.ContextKeyRequestStartTime)
if startTime.IsZero() {
startTime = time.Now()
}
// firstResponseTime = time.Now() - 1 second
apiType, _ := common.ChannelType2APIType(channelType)