module
import_statement
import "import"
dotted_name
identifier "os"
import_statement
import "import"
dotted_name
identifier "re"
comment "# Get the host from environment variable"
expression_statement (+28 nodes collapsed)
comment "# Check if this is a feature environment"
comment "# Feature environments have a host format like {some-text}.s"...
comment "# Just staging.all-hands.dev doesn't count as a feature envi"...
expression_statement (+32 nodes collapsed)
comment "# Includes the staging deployment + feature deployments"
expression_statement
assignment
identifier "IS_FEATURE_ENV"
= "="
parenthesized_expression
( "("
boolean_operator
identifier "IS_STAGING_ENV"
and "and"
comparison_operator
identifier "HOST"
!= "!="
string
string_start "'"
string_content "staging.all-hands.dev"
string_end "'"
) ")"
comment "# Does not include the staging deployment"
expression_statement
assignment
identifier "IS_LOCAL_ENV"
= "="
call
identifier "bool"
argument_list
( "("
comparison_operator
identifier "HOST"
== "=="
string
string_start "'"
string_content "localhost"
string_end "'"
) ")"
comment "# Deprecated - billing margins are now handled internally in"...
expression_statement (+29 nodes collapsed)
comment "# Map of user settings versions to their corresponding defau"...
comment "# This ensures that CURRENT_USER_SETTINGS_VERSION and LITELL"...
expression_statement (+47 nodes collapsed)
expression_statement
assignment
identifier "LITELLM_DEFAULT_MODEL"
= "="
call
attribute
identifier "os"
. "."
identifier "getenv"
argument_list
( "("
string
string_start "'"
string_content "LITELLM_DEFAULT_MODEL"
string_end "'"
) ")"
comment "# Current user settings version - this should be the latest "...
expression_statement
assignment
identifier "CURRENT_USER_SETTINGS_VERSION"
= "="
call
identifier "max"
argument_list
( "("
call
attribute
identifier "USER_SETTINGS_VERSION_TO_MODEL"
. "."
identifier "keys"
argument_list
( "("
) ")"
) ")"
expression_statement (+24 nodes collapsed)
expression_statement (+21 nodes collapsed)
expression_statement (+21 nodes collapsed)
comment "# Timeout in seconds for BYOR key verification requests to L"...
expression_statement
assignment
identifier "BYOR_KEY_VERIFICATION_TIMEOUT"
= "="
float "5.0"
expression_statement (+107 nodes collapsed)
expression_statement (+29 nodes collapsed)
expression_statement (+21 nodes collapsed)
expression_statement (+21 nodes collapsed)
expression_statement (+38 nodes collapsed)
expression_statement (+21 nodes collapsed)
expression_statement (+21 nodes collapsed)
expression_statement (+21 nodes collapsed)
expression_statement (+38 nodes collapsed)
expression_statement (+28 nodes collapsed)
expression_statement (+55 nodes collapsed)
function_definition (+95 nodes collapsed)
function_definition (+38 nodes collapsed)