Skip to content

Commit

Permalink
fixed issue 383 (#387)
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kovalsky authored Jan 8, 2025
1 parent f37e446 commit 29729a5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/sempy_labs/tom/_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -4402,9 +4402,7 @@ def generate_measure_descriptions(
measure_name = [m.Name for m in self.all_measures()]

if isinstance(measure_name, str):
measure_name = [measure_name]

client = fabric.FabricRestClient()
measure_name = [measure_name]

if len(measure_name) > max_batch_size:
measure_lists = [
Expand Down Expand Up @@ -4446,6 +4444,7 @@ def generate_measure_descriptions(
"modelItems"
].append(new_item)

client = fabric.FabricRestClient()
response = client.post("/explore/v202304/nl2nl/completions", json=payload)
if response.status_code != 200:
raise FabricHTTPException(response)
Expand Down

0 comments on commit 29729a5

Please sign in to comment.