Skip to content

Commit

Permalink
CI fix: Fix CI failure due to formatting issue
Browse files Browse the repository at this point in the history
This commit addresses the CI failure in pull request #112 by reformatting the `spice/models.py` file to comply with the required code style. The `model_copy` call has been split into multiple lines to ensure proper formatting. This change should resolve the CI error and allow the pull request to pass the checks.
  • Loading branch information
mentatai[bot] committed Sep 4, 2024
1 parent 31be854 commit 0cdea61
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion spice/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,9 @@ def get_model_from_name(model_name: str) -> Model:
else:
input_cost = None
output_cost = None
model = model.model_copy(update={"name": model_name, "input_cost": input_cost, "output_cost": output_cost})
model = model.model_copy(
update={"name": model_name, "input_cost": input_cost, "output_cost": output_cost}
)
return model

return UnknownModel(model_name, None)

0 comments on commit 0cdea61

Please sign in to comment.