Skip to content

Same agent Smaller bill. The tools and infrastructure to get more work from your AI. Fewer tokens. Less compute. Lower cost.

Bug: No content attributes when using OpenLIT CLI (#931)

Patchera3b56525ec35
diff --git a/sdk/python/pyproject.toml b/sdk/python/pyproject.toml
index 66b66aa6..d7d3e5f9 100644
--- a/sdk/python/pyproject.toml
+++ b/sdk/python/pyproject.toml
@@ -1,6 +1,6 @@
[tool.poetry]
name = "openlit"
-version = "1.35.9"
+version = "1.36.0"
description = "OpenTelemetry-native Auto instrumentation library for monitoring LLM Applications and GPUs, facilitating the integration of observability into your GenAI-driven projects"
authors = ["OpenLIT"]
license = "Apache-2.0"
diff --git a/sdk/python/src/openlit/__init__.py b/sdk/python/src/openlit/__init__.py
index c8fde6b6..cba910fd 100644
--- a/sdk/python/src/openlit/__init__.py
+++ b/sdk/python/src/openlit/__init__.py
@@ -354,7 +354,7 @@ def init(
disable_metrics = True
if (
- os.getenv("OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT", "").lower
+ os.getenv("OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT", "").lower()
== "false"
):
capture_message_content = False
diff --git a/sdk/python/src/openlit/cli/main.py b/sdk/python/src/openlit/cli/main.py
index 7fe1fa4e..fd16278b 100644
--- a/sdk/python/src/openlit/cli/main.py
+++ b/sdk/python/src/openlit/cli/main.py
@@ -102,6 +102,10 @@ def set_environment_from_cli_args(args) -> None:
if cli_value is not None:
# Handle boolean values
if isinstance(cli_value, bool):
+ # Skip setting env var if boolean is False and default is True
+ # (this means the flag wasn't provided, just the store_true default)
+ if cli_value is False and config.get("default") is True:
+ continue
os.environ[env_var] = "true" if cli_value else "false"
else:
os.environ[env_var] = str(cli_value)
diff --git a/sdk/python/src/tmp/workflow.db b/sdk/python/src/tmp/workflow.db
deleted file mode 100644
index e69de29b..00000000
diff --git a/sdk/python/tests/test_astra.py b/sdk/python/tests/test_astra.py.hold
similarity index 100%
rename from sdk/python/tests/test_astra.py
rename to sdk/python/tests/test_astra.py.hold