Skip to content

Commit

Permalink
Fix error handling (#624)
Browse files Browse the repository at this point in the history
fix error message
  • Loading branch information
rajasbansal authored Nov 8, 2023
1 parent 262d5d9 commit 7ac1132
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/autolabel/tasks/attribute_extraction.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,9 @@ def parse_llm_response(
except Exception as e:
logger.error(f"Error parsing LLM response: {response.text}, Error: {e}")
llm_label = self.NULL_LABEL
error = LabelingError(error_type=ErrorType.PARSING_ERROR, error_msg=str(e))
error = LabelingError(
error_type=ErrorType.PARSING_ERROR, error_message=str(e)
)

# TODO(rajas): Handle output guidelines not followed error (for options case)

Expand Down

0 comments on commit 7ac1132

Please sign in to comment.