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