Skip to content

Commit 8fa64c7

Browse files
committed
Modify the project root directory
1 parent f5ddb42 commit 8fa64c7

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

darkit/cli/src/pid.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import os
22
from pathlib import Path
3-
from darkit.core.utils import DSPIKE_LLM_HOME
3+
from darkit.core.utils import DARWIN_KIT_HOME
44

5-
PID_FILE = Path(os.path.expanduser(DSPIKE_LLM_HOME)) / ".server.pid"
5+
PID_FILE = Path(os.path.expanduser(DARWIN_KIT_HOME)) / ".server.pid"
66

77

88
def save_pid(pid):

darkit/core/utils/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
__all__ = ["CSVLogger"]
1212

1313

14-
DSPIKE_LLM_HOME = os.environ.get("DSPIKE_LLM_HOME", "~/.cache/DspikeLLM")
15-
HOME_PATH = os.path.expanduser(DSPIKE_LLM_HOME)
14+
DARWIN_KIT_HOME = os.environ.get("DARWIN_KIT_HOME", "~/.cache/darwinkit")
15+
HOME_PATH = os.path.expanduser(DARWIN_KIT_HOME)
1616
MODEL_PATH = Path(HOME_PATH) / "models"
1717
DATASET_PATH = Path(HOME_PATH) / "datasets"
1818

darkit/core/utils/server.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
import uvicorn
44
import multiprocessing
55
from pathlib import Path
6-
from ..utils import DSPIKE_LLM_HOME
6+
from ..utils import DARWIN_KIT_HOME
77

8-
SERVER_LOG_PATH = Path(os.path.expanduser(DSPIKE_LLM_HOME)) / "server.log"
8+
SERVER_LOG_PATH = Path(os.path.expanduser(DARWIN_KIT_HOME)) / "server.log"
99

1010

1111
def start_uvicorn_server(port: int, daemon: bool):

0 commit comments

Comments
 (0)