Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion optillm/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Version information
__version__ = "0.3.12"
__version__ = "0.3.13"

# Import from server module
from .server import (
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "optillm"
version = "0.3.12"
version = "0.3.13"
description = "An optimizing inference proxy for LLMs."
readme = "README.md"
license = "Apache-2.0"
Expand Down
2 changes: 2 additions & 0 deletions tests/test_conversation_logging_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ def _start_server_with_logging(cls):
env["OPTILLM_API_KEY"] = "optillm"
env["OPTILLM_LOG_CONVERSATIONS"] = "true"
env["OPTILLM_CONVERSATION_LOG_DIR"] = str(cls.temp_log_dir)
# Enable MPS fallback to CPU for unsupported operations (fixes macOS compatibility)
env["PYTORCH_ENABLE_MPS_FALLBACK"] = "1"

# Get the project root directory (parent of tests directory)
project_root = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
Expand Down
2 changes: 2 additions & 0 deletions tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ def start_test_server(model: str = TEST_MODEL, port: int = 8000) -> subprocess.P
# Set environment for local inference
env = os.environ.copy()
env["OPTILLM_API_KEY"] = "optillm"
# Enable MPS fallback to CPU for unsupported operations (fixes macOS compatibility)
env["PYTORCH_ENABLE_MPS_FALLBACK"] = "1"

# Get the project root directory (parent of tests directory)
project_root = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
Expand Down