mirror of
				https://github.com/linux-do/new-api.git
				synced 2025-11-04 13:23:42 +08:00 
			
		
		
		
	feat: update stream_options again
This commit is contained in:
		@@ -87,9 +87,7 @@ func OaiStreamHandler(c *gin.Context, resp *http.Response, info *relaycommon.Rel
 | 
			
		||||
	err := json.Unmarshal(common.StringToByteSlice(lastStreamData), &lastStreamResponse)
 | 
			
		||||
	if err == nil {
 | 
			
		||||
		if lastStreamResponse.Usage != nil && service.ValidUsage(lastStreamResponse.Usage) {
 | 
			
		||||
			if info.ShouldIncludeUsage {
 | 
			
		||||
				containStreamUsage = true
 | 
			
		||||
			} else {
 | 
			
		||||
			if !info.ShouldIncludeUsage {
 | 
			
		||||
				shouldSendLastResp = false
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user