Skip to content

Commit 930e903

Browse files
authored
Python SDK: Import __version__ in __init__.py (#238)
1 parent 3479df8 commit 930e903

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

sdk/python/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ alias = "phi-3.5-mini"
8282
# Local service if it is not already running and load the specified model.
8383
manager = FoundryLocalManager(alias)
8484

85-
# The remaining code us es the OpenAI Python SDK to interact with the local model.
85+
# The remaining code uses the OpenAI Python SDK to interact with the local model.
8686

8787
# Configure the client to use the local Foundry service
8888
client = openai.OpenAI(

sdk/python/foundry_local/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import sys
77

88
from foundry_local.api import FoundryLocalManager
9+
from foundry_local.version import __version__
910

1011
_logger = logging.getLogger(__name__)
1112
_logger.setLevel(logging.WARNING)
@@ -18,4 +19,4 @@
1819
_logger.addHandler(_sc)
1920
_logger.propagate = False
2021

21-
__all__ = ["FoundryLocalManager"]
22+
__all__ = ["FoundryLocalManager", "__version__"]

0 commit comments

Comments
 (0)