Skip to content

Commit

Permalink
fix model param updates
Browse files Browse the repository at this point in the history
  • Loading branch information
deigen committed Feb 6, 2025
1 parent 2eecf55 commit 14427b4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions clarifai/client/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -1233,8 +1233,9 @@ def _get_model_info_for_inference(self, inference_params: Dict = {},

model_info = resources_pb2.Model()
model_info.CopyFrom(self.model_info)
model_info.model_version.output_info.params.update(inference_params)
model_info.model_version.output_info.output_config.update(output_config)
model_info.model_version.output_info.params = inference_params
model_info.model_version.output_info.output_config.CopyFrom(
resources_pb2.OutputConfig(**output_config))
return model_info

def _list_concepts(self) -> List[str]:
Expand Down

0 comments on commit 14427b4

Please sign in to comment.