Skip to content

Commit

Permalink
added exception to track complete error (#1662)
Browse files Browse the repository at this point in the history
  • Loading branch information
sfahad1414 authored Dec 18, 2024
1 parent be8816b commit e31e904
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion kairon/events/definitions/model_testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,6 @@ def execute(self, **kwargs):
nlu_result=nlu_results,
event_status=EVENT_STATUS.COMPLETED.value)
except Exception as e:
logger.error(str(e))
logger.exception(str(e))
ModelTestingLogProcessor.log_test_result(self.bot, self.user, exception=str(e),
event_status=EVENT_STATUS.FAIL.value)
6 changes: 5 additions & 1 deletion kairon/nlu/classifiers/llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@
pass

@DefaultV1Recipe.register(
DefaultV1Recipe.ComponentType.INTENT_CLASSIFIER, is_trainable=True
[
DefaultV1Recipe.ComponentType.INTENT_CLASSIFIER,
DefaultV1Recipe.ComponentType.ENTITY_EXTRACTOR,
],
is_trainable=True
)
class LLMClassifier(IntentClassifier, GraphComponent, EntityExtractorMixin, ABC):
"""Intent and Entity classifiers using the OpenAI Completion framework"""
Expand Down

0 comments on commit e31e904

Please sign in to comment.