Skip to content

Commit b356fc0

Browse files
committed
push
1 parent 807f7db commit b356fc0

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

langfuse/_client/client.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,9 @@ def __init__(
166166
self._project_id = None
167167
sample_rate = sample_rate or float(os.environ.get(LANGFUSE_SAMPLE_RATE, 1.0))
168168
if not 0.0 <= sample_rate <= 1.0:
169-
raise ValueError(f"Sample rate must be between 0.0 and 1.0, got {sample_rate}")
169+
raise ValueError(
170+
f"Sample rate must be between 0.0 and 1.0, got {sample_rate}"
171+
)
170172

171173
self._tracing_enabled = (
172174
tracing_enabled
@@ -1231,9 +1233,9 @@ def create_score(
12311233
*,
12321234
name: str,
12331235
value: str,
1234-
trace_id: Optional[str] = None,
12351236
session_id: Optional[str] = None,
12361237
dataset_run_id: Optional[str] = None,
1238+
trace_id: Optional[str] = None,
12371239
score_id: Optional[str] = None,
12381240
observation_id: Optional[str] = None,
12391241
data_type: Optional[Literal["CATEGORICAL"]] = "CATEGORICAL",

0 commit comments

Comments
 (0)