fix: opencode config
This commit is contained in:
@@ -36,6 +36,8 @@ class Settings(BaseSettings):
|
||||
plan_variant: str | None = None
|
||||
implement_model: str = "openai/gpt-5.6-sol"
|
||||
implement_variant: str | None = None
|
||||
explore_model: str = "openai/gpt-5.6-luna"
|
||||
explore_variant: str = "low"
|
||||
research_model: str = "openai/gpt-5.6-luna"
|
||||
research_variant: str = "high"
|
||||
plan_review_rounds: int = Field(default=4, ge=1, le=20)
|
||||
@@ -53,7 +55,7 @@ class Settings(BaseSettings):
|
||||
def strip_url(cls, value: str) -> str:
|
||||
return value.rstrip("/")
|
||||
|
||||
@field_validator("plan_model", "implement_model", "research_model")
|
||||
@field_validator("plan_model", "implement_model", "explore_model", "research_model")
|
||||
@classmethod
|
||||
def validate_opencode_model(cls, value: str) -> str:
|
||||
provider, separator, model = value.partition("/")
|
||||
|
||||
@@ -59,6 +59,7 @@ async def build_container(settings: Settings) -> Container:
|
||||
required_models=(
|
||||
(settings.plan_model, settings.plan_variant),
|
||||
(settings.implement_model, settings.implement_variant),
|
||||
(settings.explore_model, settings.explore_variant),
|
||||
(settings.research_model, settings.research_variant),
|
||||
),
|
||||
timeout_seconds=settings.turn_timeout_seconds,
|
||||
|
||||
Reference in New Issue
Block a user