- Improvements on audio processing to limit CPU and memory usage
- Removed Portkey from the equation, and defined explicit monitoring using Langchain native code - Optimization of Business Event logging
This commit is contained in:
@@ -147,6 +147,15 @@ class Config(object):
|
||||
|
||||
TENANT_TYPES = ['Active', 'Demo', 'Inactive', 'Test']
|
||||
|
||||
# The maximum number of seconds allowed for audio compression (to save resources)
|
||||
MAX_COMPRESSION_DURATION = 60*10 # 10 minutes
|
||||
# The maximum number of seconds allowed for transcribing audio
|
||||
MAX_TRANSCRIPTION_DURATION = 60*10 # 10 minutes
|
||||
# Maximum CPU usage for a compression task
|
||||
COMPRESSION_CPU_LIMIT = 50
|
||||
# Delay between compressing chunks in seconds
|
||||
COMPRESSION_PROCESS_DELAY = 1
|
||||
|
||||
|
||||
class DevConfig(Config):
|
||||
DEVELOPMENT = True
|
||||
|
||||
Reference in New Issue
Block a user