Update deep-research-service.ts

This commit is contained in:
Nicolas 2025-03-02 17:37:15 -03:00
parent 22d4f0de38
commit 30c1e92a2e

View File

@ -296,7 +296,7 @@ export async function performDeepResearch(options: DeepResearchServiceOptions) {
finalAnalysis: finalAnalysis,
});
// Bill team for usage based on URLs analyzed
billTeam(teamId, subId, urlsAnalyzed, logger).catch(
billTeam(teamId, subId, Math.min(urlsAnalyzed, options.maxUrls), logger).catch(
(error) => {
logger.error(
`Failed to bill team ${teamId} for ${urlsAnalyzed} URLs analyzed`, { teamId, count: urlsAnalyzed, error },