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 5e351bc02a
commit a46b94d4c5
2 changed files with 3 additions and 3 deletions

View File

@@ -176,4 +176,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)