updated ollama timeout

This commit is contained in:
ArnabChatterjee20k
2026-01-21 12:23:29 +05:30
parent 02bba85fe7
commit a112de41c5
@@ -88,7 +88,7 @@ class Create extends CreateDocumentAction
public function action(array $texts, string $model, UtopiaResponse $response, Document $project, Agent $embeddingAgent, StatsUsage $queueForStatsUsage, Log $log, ?Logger $logger): void
{
$results = [];
$embeddingAgent->getAdapter()->setModel($model);
$embeddingAgent->getAdapter()->setModel($model)->setTimeout(150);
$dimension = $embeddingAgent->getAdapter()->getEmbeddingDimension();
$totalDuration = 0;