Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
thelostone-mc committed Nov 17, 2024
1 parent 495745d commit ee9b611
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions src/controllers/poolController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,16 +192,21 @@ const triggerLLMEvaluationByPool = async (

// Map filtered applications to evaluation parameters
const evaluationParamsArray: CreateLLMEvaluationParams[] =
applicationsForLLMReview.map(poolApplication => ({
chainId,
alloPoolId,
alloApplicationId: poolApplication.id,
cid: poolApplication.metadataCid,
evaluator: addressFrom(1),
roundMetadata: indexerPoolData.roundMetadata,
applicationMetadata: poolApplication.metadata,
questions: evaluationQuestions,
}));
applicationsForLLMReview.map(poolApplication => {
if (poolApplication == null) {
throw new Error('Unexpected undefined poolApplication');
}
return {
chainId,
alloPoolId,
alloApplicationId: poolApplication.id,
cid: poolApplication.metadataCid,
evaluator: addressFrom(1),
roundMetadata: indexerPoolData.roundMetadata,
applicationMetadata: poolApplication.metadata,
questions: evaluationQuestions,
};
});

if (evaluationParamsArray.length !== applicationsWithoutLLM.length) {
logger.warn('Some applications were not found in indexerPoolData');
Expand Down

0 comments on commit ee9b611

Please sign in to comment.