Skip to content

Commit

Permalink
Allow extra config
Browse files Browse the repository at this point in the history
  • Loading branch information
SmartManoj committed Jan 13, 2025
1 parent 64ebcbd commit cca6f6f
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
3 changes: 1 addition & 2 deletions openhands/core/config/app_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class AppConfig(BaseModel):
file_uploads_allowed_extensions: list[str] = Field(default_factory=lambda: ['.*'])
runloop_api_key: SecretStr | None = Field(default=None)
cli_multiline_input: bool = Field(default=False)

show_workspace_contents: bool = Field(default=True)
override_UI_settings: bool = Field(default=False)
custom_instructions: str = Field(default='')
Expand All @@ -88,7 +88,6 @@ class AppConfig(BaseModel):

defaults_dict: ClassVar[dict] = {}

model_config = {'extra': 'forbid'}

def get_llm_config(self, name='llm') -> LLMConfig:
"""'llm' is the name for default config (for backward compatibility prior to 0.8)."""
Expand Down
1 change: 0 additions & 1 deletion openhands/core/config/llm_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ class LLMConfig(BaseModel):

use_group: str | None = Field(default=None)

model_config = {'extra': 'forbid'}

def model_post_init(self, __context: Any):
"""Post-initialization hook to assign OpenRouter-related variables to environment variables.
Expand Down
1 change: 0 additions & 1 deletion openhands/core/config/sandbox_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,3 @@ class SandboxConfig(BaseModel):
persist_sandbox: bool = True
port: int = 63710

model_config = {'extra': 'forbid'}

0 comments on commit cca6f6f

Please sign in to comment.