Replace USE_V1_CONVERSATION_API feature flag with user setting (#11893)

Co-authored-by: openhands <openhands@all-hands.dev>
This commit is contained in:
Tim O'Farrell
2025-12-03 09:02:40 -07:00
committed by GitHub
parent 816d8acf1f
commit 8f91db8ec4
10 changed files with 21 additions and 12 deletions

View File

@@ -1,5 +1,7 @@
from __future__ import annotations
import os
from pydantic import (
BaseModel,
ConfigDict,
@@ -48,7 +50,7 @@ class Settings(BaseModel):
email_verified: bool | None = None
git_user_name: str | None = None
git_user_email: str | None = None
v1_enabled: bool | None = None
v1_enabled: bool | None = Field(default=bool(os.getenv('V1_ENABLED') == '1'))
model_config = ConfigDict(
validate_assignment=True,