Code view:

A painting is a person's account of this edit as text, recorded independently of the node mapping - a rendering often has several equally defensible answers where the mapping has one. Deletions and insertions carry no position on the opposite side in a painting, so that panel draws no caret for them.

Before

…lines 1–34 unchanged (34 lines)
35
36LITE_LLM_API_URL = os.environ.get(
37 'LITE_LLM_API_URL', 'https://llm-proxy.app.all-hands.dev'
38)
39LITE_LLM_TEAM_ID = os.environ.get('LITE_LLM_TEAM_ID', None)
40LITE_LLM_API_KEY = os.environ.get('LITE_LLM_API_KEY', None)
41SUBSCRIPTION_PRICE_DATA = {
42 'MONTHLY_SUBSCRIPTION': {
43 'unit_amount': 2000,
44 'currency': 'usd',
45 'product_data': {
46 'name': 'OpenHands Monthly',
47 'tax_code': 'txcd_10000000',
…lines 48–108 unchanged (61 lines)

After

…lines 1–34 unchanged (34 lines)
35
36LITE_LLM_API_URL = os.environ.get(
37 'LITE_LLM_API_URL', 'https://llm-proxy.app.all-hands.dev'
38)
39LITE_LLM_TEAM_ID = os.environ.get('LITE_LLM_TEAM_ID', None)
40LITE_LLM_API_KEY = os.environ.get('LITE_LLM_API_KEY', None)
41# Timeout in seconds for BYOR key verification requests to LiteLLM
42BYOR_KEY_VERIFICATION_TIMEOUT = 5.0
43SUBSCRIPTION_PRICE_DATA = {
44 'MONTHLY_SUBSCRIPTION': {
45 'unit_amount': 2000,
46 'currency': 'usd',
47 'product_data': {
48 'name': 'OpenHands Monthly',
…lines 49–110 unchanged (62 lines)

Before

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)
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)

After

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)