Skip to content

Commit ba5421a

Browse files
jsonbaileyclaude
andcommitted
fix: Omit variationKey from track data when empty
Match the resumption token behavior: only include variationKey in the track data dict when it has a non-empty value. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 6bf91fa commit ba5421a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

packages/sdk/server-ai/src/ldai/tracker.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,12 +180,13 @@ def __get_track_data(self) -> dict:
180180
"""
181181
data = {
182182
"runId": self._run_id,
183-
"variationKey": self._variation_key,
184183
"configKey": self._config_key,
185184
"version": self._version,
186185
"modelName": self._model_name,
187186
"providerName": self._provider_name,
188187
}
188+
if self._variation_key:
189+
data["variationKey"] = self._variation_key
189190
if self._graph_key is not None:
190191
data['graphKey'] = self._graph_key
191192
return data

0 commit comments

Comments
 (0)