Skip to content

Commit b9765e7

Browse files
Merge pull request #274 from MLSysOps/fix/lancedb-init
[MRG] Fixed the memory init before config error
2 parents ea7393b + ff809bf commit b9765e7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

mle/cli.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,10 @@
1919
startup_web,
2020
print_in_box,
2121
)
22-
from mle.utils import LanceDBMemory, list_files, read_file
2322
from mle.utils import CodeChunker
23+
from mle.utils import LanceDBMemory, list_files, read_file
2424

2525
console = Console()
26-
memory = LanceDBMemory(os.getcwd())
2726

2827

2928
@click.group()
@@ -199,6 +198,7 @@ def chat(model, build_mem):
199198
if not check_config(console):
200199
return
201200

201+
memory = LanceDBMemory(os.getcwd())
202202
if build_mem:
203203
working_dir = os.getcwd()
204204
table_name = 'mle_chat_' + working_dir.split('/')[-1]

requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
rich
22
click
33
py7zr~=0.22.0
4-
openai~=1.34.0
4+
openai
55
pyyaml
66
kaggle
77
fastapi

0 commit comments

Comments
 (0)