Skip to content

Commit

Permalink
fix: DIA-1489: backwards compatible autorefinement with non-multiskill (
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-bernstein authored Oct 31, 2024
1 parent 3665a80 commit 2bf8169
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion adala/skills/collection/prompt_improvement.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ def get_json_template(fields):
else:
model_json_schema = self.skill_to_improve.response_model.model_json_schema()

# TODO: can remove this when only LabelStudioSkill is supported
label_config = getattr(self.skill_to_improve, 'label_config', '<View>Not available</View>')

input_variables = self.input_variables
output_variables = list(model_json_schema['properties'].keys())
input_json_template = get_json_template(input_variables)
Expand All @@ -84,7 +87,7 @@ def get_json_template(fields):
## Current Labeling Config:
```xml
{self.skill_to_improve.label_config}
{label_config}
```
## Input variables:
Expand Down

0 comments on commit 2bf8169

Please sign in to comment.