Skip to content

Commit 30e095f

Browse files
authored
Merge pull request #78 from codelion/fix-init-py
Fix init py
2 parents 65695cc + ba2eebe commit 30e095f

File tree

4 files changed

+15
-2
lines changed

4 files changed

+15
-2
lines changed

optillm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from concurrent.futures import ThreadPoolExecutor
1414

1515
# Import the LiteLLM wrapper
16-
from litellm_wrapper import LiteLLMWrapper
16+
from optillm.litellm_wrapper import LiteLLMWrapper
1717

1818
# Import approach modules
1919
from optillm.mcts import chat_with_mcts

optillm/__init__.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
from importlib import util
2+
import os
3+
4+
# Get the path to the root optillm.py
5+
spec = util.spec_from_file_location(
6+
"optillm.root",
7+
os.path.join(os.path.dirname(os.path.dirname(__file__)), "optillm.py")
8+
)
9+
module = util.module_from_spec(spec)
10+
spec.loader.exec_module(module)
11+
12+
# Export the main function
13+
main = module.main
File renamed without changes.

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
setup(
44
name="optillm",
5-
version="0.0.4",
5+
version="0.0.5",
66
packages=find_packages(),
77
py_modules=['optillm'],
88
install_requires=[

0 commit comments

Comments
 (0)