Skip to content

Commit

Permalink
Remove helper settings properties
Browse files Browse the repository at this point in the history
  • Loading branch information
amanape committed Jan 21, 2025
1 parent 23b0ec3 commit f307f8a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions openhands/server/routes/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ async def store_settings(

if settings.unset_github_token:
settings.github_token = None
settings.unset_github_token = None

# Update sandbox config with new settings
if settings.remote_runtime_resource_factor is not None:
Expand Down
2 changes: 0 additions & 2 deletions openhands/server/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ class Settings(BaseModel):
llm_api_key: SecretStr | None = None
llm_base_url: str | None = None
remote_runtime_resource_factor: int | None = None
unset_github_token: bool | None = None
github_token: str | None = None
github_token_is_set: bool = False

@field_serializer('llm_api_key')
def llm_api_key_serializer(self, llm_api_key: SecretStr, info: SerializationInfo):
Expand Down

0 comments on commit f307f8a

Please sign in to comment.