fix: remove json_mode and output_schema #3385
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR removes the
json_mode
andoutput_schema
parameters from the AIMLModel component. The changes include:json_mode
Dictionary from the component definition.output_schema
Dictionary from the component definition.json_mode
variable assignment in thebuild_model
method.output_schema_dict
variable and its usage in thebuild_model
method.These changes simplify the AIMLModel component by removing unused or redundant features. The PR aligns with issue #3385, which called for the removal of these parameters.
Importantly, this PR fixes errors related to unsupported features in AI ML. Specifically, it addresses the error:
"Error building Component Tool Calling Agent: AsyncCompletions.create() got an unexpected keyword argument 'json_mode'"
This error occurs because the AI ML component does not support the
json_mode
parameter, and removing it resolves this issue.