refactor: load environment variables from .env file and update openRouter configuration
This commit is contained in:
@@ -153,10 +153,19 @@ async function processCompany(company, intelligenceDb, llmConfig, getKnowledge,
|
||||
}
|
||||
|
||||
|
||||
function normalizeEntityName(name) {
|
||||
return name
|
||||
.toLowerCase()
|
||||
.replace(/\./g, "")
|
||||
.replace(/\s+/g, " ")
|
||||
.trim();
|
||||
}
|
||||
|
||||
|
||||
function extractClaimText(type, data) {
|
||||
if (type === "relationship") {
|
||||
if (!data.entity) return null;
|
||||
return `${data.entity} is a ${data.type || "partner"}`;
|
||||
return `${normalizeEntityName(data.entity)} is a ${data.type || "partner"}`;
|
||||
}
|
||||
|
||||
if (type === "theme") {
|
||||
|
||||
Reference in New Issue
Block a user