Skip to content

Commit 29729a5

Browse files
authored
fixed issue 383 (#387)
1 parent f37e446 commit 29729a5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/sempy_labs/tom/_model.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4402,9 +4402,7 @@ def generate_measure_descriptions(
44024402
measure_name = [m.Name for m in self.all_measures()]
44034403

44044404
if isinstance(measure_name, str):
4405-
measure_name = [measure_name]
4406-
4407-
client = fabric.FabricRestClient()
4405+
measure_name = [measure_name]
44084406

44094407
if len(measure_name) > max_batch_size:
44104408
measure_lists = [
@@ -4446,6 +4444,7 @@ def generate_measure_descriptions(
44464444
"modelItems"
44474445
].append(new_item)
44484446

4447+
client = fabric.FabricRestClient()
44494448
response = client.post("/explore/v202304/nl2nl/completions", json=payload)
44504449
if response.status_code != 200:
44514450
raise FabricHTTPException(response)

0 commit comments

Comments
 (0)