feat: only allow gpt-audio stream mode when EnforceIncludeUsage is true

This commit is contained in:
Laisky.Cai
2025-01-26 08:21:51 +00:00
parent 010bc72304
commit bcba9bf3a1
2 changed files with 3 additions and 2 deletions

View File

@@ -161,4 +161,5 @@ var RelayProxy = env.String("RELAY_PROXY", "")
var UserContentRequestProxy = env.String("USER_CONTENT_REQUEST_PROXY", "")
var UserContentRequestTimeout = env.Int("USER_CONTENT_REQUEST_TIMEOUT", 30)
// EnforceIncludeUsage is used to determine whether to include usage in the response
var EnforceIncludeUsage = env.Bool("ENFORCE_INCLUDE_USAGE", false)