Skip to content

Commit 437c313

Browse files
authored
1 parent c0548f6 commit 437c313

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
lines changed

openviking/server/bootstrap.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
import argparse
66
import os
7+
import shutil
78
import subprocess
89
import sys
910
import time
@@ -176,7 +177,7 @@ def _start_vikingbot_gateway(enable_logging: bool, log_dir: str) -> Optional[Bot
176177

177178
# Check if vikingbot is available
178179
vikingbot_cmd = None
179-
if subprocess.run(["which", "vikingbot"], capture_output=True).returncode == 0:
180+
if shutil.which("vikingbot"):
180181
vikingbot_cmd = ["vikingbot", "gateway"]
181182
else:
182183
# Try python -m vikingbot

pyproject.toml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -132,17 +132,7 @@ bot-sandbox = [
132132
bot-fuse = ["fusepy>=3.0.1"]
133133
bot-opencode = ["opencode-ai>=0.1.0a0"]
134134
bot-full = [
135-
"langfuse>=3.0.0",
136-
"python-telegram-bot[socks]>=21.0",
137-
"lark-oapi>=1.0.0",
138-
"dingtalk-stream>=0.4.0",
139-
"slack-sdk>=3.26.0",
140-
"qq-botpy>=1.0.0",
141-
"opensandbox>=0.1.0",
142-
"opensandbox-server>=0.1.0",
143-
"agent-sandbox>=0.0.23",
144-
"fusepy>=3.0.1",
145-
"opencode-ai>=0.1.0a0",
135+
"openviking[bot,bot-langfuse,bot-telegram,bot-feishu,bot-dingtalk,bot-slack,bot-qq,bot-sandbox,bot-fuse,bot-opencode]",
146136
]
147137

148138
[project.urls]

0 commit comments

Comments
 (0)