fix: use ollama/qwen3-coder-next instead of anthropic, remove stale ANTHROPIC_MODEL ref
This commit is contained in:
+3
-3
@@ -68,8 +68,8 @@ OPENCODE_PASSWORD = os.environ.get("OPENCODE_PASSWORD", "")
|
||||
SIDECAR_URL = os.environ.get("SIDECAR_URL", "http://sin:4098").rstrip("/")
|
||||
|
||||
# Model to use for opencode sessions.
|
||||
OPENCODE_MODEL = os.environ.get("OPENCODE_MODEL", "claude-sonnet-4-6")
|
||||
OPENCODE_PROVIDER = os.environ.get("OPENCODE_PROVIDER", "anthropic")
|
||||
OPENCODE_MODEL = os.environ.get("OPENCODE_MODEL", "qwen3-coder-next:q4_K_M")
|
||||
OPENCODE_PROVIDER = os.environ.get("OPENCODE_PROVIDER", "ollama")
|
||||
|
||||
if not PREVIEW_MODE and not OPENCODE_PASSWORD:
|
||||
raise RuntimeError("OPENCODE_PASSWORD not set (set PREVIEW_MODE=1 to bypass)")
|
||||
@@ -494,7 +494,7 @@ async def index(request: Request) -> Any:
|
||||
"chat.html",
|
||||
{
|
||||
"user": user,
|
||||
"model": ANTHROPIC_MODEL or "preview",
|
||||
"model": OPENCODE_MODEL,
|
||||
"cart": cart,
|
||||
"pilot_name": (cart.operator_name if cart and cart.operator_name else "you"),
|
||||
"persona_name": (cart.persona_name if cart and cart.persona_name else ""),
|
||||
|
||||
Reference in New Issue
Block a user