Skip to content

Commit

Permalink
Merge pull request #86 from codelion/export-entrypoints-
Browse files Browse the repository at this point in the history
Update init file to expose methods
  • Loading branch information
codelion authored Nov 4, 2024
2 parents bbeb494 + 14e2b89 commit 0378fd4
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 3 deletions.
46 changes: 44 additions & 2 deletions optillm/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,47 @@
module = util.module_from_spec(spec)
spec.loader.exec_module(module)

# Export the main function
main = module.main
# Export the main entry point
main = module.main

# Export the core configuration and server components
server_config = module.server_config
app = module.app
known_approaches = module.known_approaches
plugin_approaches = module.plugin_approaches

# Export utility functions
parse_combined_approach = module.parse_combined_approach
parse_conversation = module.parse_conversation
extract_optillm_approach = module.extract_optillm_approach
get_config = module.get_config
load_plugins = module.load_plugins

# Export execution functions
execute_single_approach = module.execute_single_approach
execute_combined_approaches = module.execute_combined_approaches
execute_parallel_approaches = module.execute_parallel_approaches

# Export streaming response generation
generate_streaming_response = module.generate_streaming_response

# Version information
__version__ = "0.0.8" # Match with setup.py

# List of exported symbols
__all__ = [
'main',
'server_config',
'app',
'known_approaches',
'plugin_approaches',
'parse_combined_approach',
'parse_conversation',
'extract_optillm_approach',
'get_config',
'load_plugins',
'execute_single_approach',
'execute_combined_approaches',
'execute_parallel_approaches',
'generate_streaming_response',
]
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name="optillm",
version="0.0.7",
version="0.0.8",
packages=find_packages(),
py_modules=['optillm'],
package_data={
Expand Down

0 comments on commit 0378fd4

Please sign in to comment.