feat: enable thinking mode on ali thinking model

This commit is contained in:
feitianbubu
2025-08-06 22:58:36 +08:00
parent 0c0caad827
commit 38067f1ddc
3 changed files with 13 additions and 4 deletions

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)