Constants
gllm_inference.constants
Contains constants used throughout the gllm_inference package.
References
NONE
gllm_inference.constants
Contains constants used throughout the gllm_inference package.
NONE
ALL_EXTENSIONS = '*'
module-attribute
DEFAULT_AZURE_OPENAI_API_VERSION = '2025-03-01-preview'
module-attribute
DEFAULT_CONTENT_PLACEHOLDER_TYPE = 'undefined'
module-attribute
DOCUMENT_MIME_TYPES = {'application', 'text'}
module-attribute
GOOGLE_SCOPES = ['https://www.googleapis.com/auth/cloud-platform']
module-attribute
HEX_REPR_LENGTH = 20
module-attribute
HTTP_STATUS_CODE_PATTERNS = ['[\\"\']?HTTPStatusCode[\\"\']?\\s*[:=]\\s*[\\"\']?(\\d{3})[\\"\']?', '[\\"\']?HTTPStatus[\\"\']?\\s*[:=]\\s*[\\"\']?(\\d{3})[\\"\']?', '[\\"\']?http_status_code[\\"\']?\\s*[:=]\\s*[\\"\']?(\\d{3})[\\"\']?', '[\\"\']?http_status[\\"\']?\\s*[:=]\\s*[\\"\']?(\\d{3})[\\"\']?', '[\\"\']?statusCode[\\"\']?\\s*[:=]\\s*[\\"\']?(\\d{3})[\\"\']?', '[\\"\']?status[\\"\']?\\s*[:=]\\s*[\\"\']?(\\d{3})[\\"\']?', '[\\"\']?code[\\"\']?\\s*[:=]\\s*[\\"\']?(\\d{3})[\\"\']?', 'Error\\s+code[:\\s]+(\\d{3})', 'HTTP\\s+(\\d{3})', '(\\d{3})\\s*[-–]\\s*']
module-attribute
MESSAGE_TUPLE_LENGTH = 2
module-attribute