We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c6a07b commit 5748d69Copy full SHA for 5748d69
backend/app/core/langfuse/langfuse.py
@@ -132,7 +132,9 @@ def decorator(func: Callable) -> Callable:
132
@wraps(func)
133
def wrapper(completion_config: CompletionConfig, query: QueryParams, **kwargs):
134
# Skip observability if no credentials provided
135
- if not credentials:
+ if not credentials or not all(
136
+ key in credentials for key in ["public_key", "secret_key", "host"]
137
+ ):
138
logger.info("[Langfuse] No credentials - skipping observability")
139
return func(completion_config, query, **kwargs)
140
0 commit comments