Skip to content

Commit

Permalink
fix: return type
Browse files Browse the repository at this point in the history
  • Loading branch information
marrouchi committed Jan 23, 2025
1 parent 0243c71 commit 43d63cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/src/helper/lib/base-nlp-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export default abstract class BaseNlpHelper<
async format(
samples: NlpSampleFull[],
entities: NlpEntityFull[],
): Promise<Record<string, any>[]> {
): Promise<Record<string, any>[] | Record<string, any>> {
const entityMap = NlpEntity.getEntityMap(entities);
const valueMap = NlpValue.getValueMap(
NlpValue.getValuesFromEntities(entities),
Expand Down

0 comments on commit 43d63cf

Please sign in to comment.