Skip to content

Commit 14e2b89

Browse files
committed
Update init file to expose methods
1 parent bbeb494 commit 14e2b89

File tree

2 files changed

+45
-3
lines changed

2 files changed

+45
-3
lines changed

optillm/__init__.py

Lines changed: 44 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,47 @@
99
module = util.module_from_spec(spec)
1010
spec.loader.exec_module(module)
1111

12-
# Export the main function
13-
main = module.main
12+
# Export the main entry point
13+
main = module.main
14+
15+
# Export the core configuration and server components
16+
server_config = module.server_config
17+
app = module.app
18+
known_approaches = module.known_approaches
19+
plugin_approaches = module.plugin_approaches
20+
21+
# Export utility functions
22+
parse_combined_approach = module.parse_combined_approach
23+
parse_conversation = module.parse_conversation
24+
extract_optillm_approach = module.extract_optillm_approach
25+
get_config = module.get_config
26+
load_plugins = module.load_plugins
27+
28+
# Export execution functions
29+
execute_single_approach = module.execute_single_approach
30+
execute_combined_approaches = module.execute_combined_approaches
31+
execute_parallel_approaches = module.execute_parallel_approaches
32+
33+
# Export streaming response generation
34+
generate_streaming_response = module.generate_streaming_response
35+
36+
# Version information
37+
__version__ = "0.0.8" # Match with setup.py
38+
39+
# List of exported symbols
40+
__all__ = [
41+
'main',
42+
'server_config',
43+
'app',
44+
'known_approaches',
45+
'plugin_approaches',
46+
'parse_combined_approach',
47+
'parse_conversation',
48+
'extract_optillm_approach',
49+
'get_config',
50+
'load_plugins',
51+
'execute_single_approach',
52+
'execute_combined_approaches',
53+
'execute_parallel_approaches',
54+
'generate_streaming_response',
55+
]

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.7",
5+
version="0.0.8",
66
packages=find_packages(),
77
py_modules=['optillm'],
88
package_data={

0 commit comments

Comments
 (0)