Skip to content

Commit

Permalink
Merge branch 'dev' into mainnet
Browse files Browse the repository at this point in the history
  • Loading branch information
serefyarar committed Jul 16, 2024
2 parents 26727a9 + dce9037 commit 2790ea2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion api/src/agents/basic_subscriber.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,6 @@ export const handleNewItemEvent = async (
);
}
} catch (e) {
console.log(e);
console.log(e.message);
}
};
9 changes: 5 additions & 4 deletions api/src/libs/indexer.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,11 @@ class Indexer {
vector: embeddingResponse.data.vector,
description: "Default document embeddings",
});

logger.info(
`Step [0]: EmbeddingEvent trigger successful for id: ${embedding.id}`,
);
if (embedding) {
logger.info(
`Step [0]: EmbeddingEvent trigger successful for id: ${embedding.id}`,
);
}
} catch (e) {
logger.error(
`Step [0]: Indexer createIndexItemEvent error: ${JSON.stringify(e)}`,
Expand Down
1 change: 0 additions & 1 deletion api/src/services/embedding.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,6 @@ export class EmbeddingService {
} catch (error) {
// Log the error and rethrow it for external handling
console.error("Exception occurred in createEmbedding:", error);
throw error;
}
}

Expand Down

0 comments on commit 2790ea2

Please sign in to comment.