Skip to content

Commit

Permalink
Fix competency extraction did not save Enum
Browse files Browse the repository at this point in the history
  • Loading branch information
alexjoham committed Oct 12, 2024
1 parent 4c92900 commit 6bd4b33
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/pipeline/competency_extraction_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
ChatPromptTemplate,
)

from app.common.PipelineEnum import PipelineEnum
from app.common.pyris_message import PyrisMessage, IrisMessageRole
from app.domain import (
CompetencyExtractionPipelineExecutionDTO,
Expand Down Expand Up @@ -76,7 +77,9 @@ def __call__(
response = self.request_handler.chat(
[prompt], CompletionArguments(temperature=0.4)
)
self.tokens.append(response.token_usage)
self._append_tokens(
response.token_usage, PipelineEnum.IRIS_COMPETENCY_GENERATION
)
response = response.contents[0].text_content

generated_competencies: list[Competency] = []
Expand Down

0 comments on commit 6bd4b33

Please sign in to comment.