mirror of
				https://github.com/amithkoujalgi/ollama4j.git
				synced 2025-10-31 16:40:41 +01:00 
			
		
		
		
	Fix logging for model pull retry
This commit is contained in:
		| @@ -450,7 +450,7 @@ public class OllamaAPI { | ||||
|         int attempt = currentRetry + 1; | ||||
|         if (attempt < maxRetries) { | ||||
|             long backoffMillis = baseDelayMillis * (1L << currentRetry); | ||||
|             logger.error("Failed to pull model {}, retrying in {} s... (attempt {}/{})", | ||||
|             logger.error("Failed to pull model {}, retrying in {}s... (attempt {}/{})", | ||||
|                     modelName, backoffMillis/1000, attempt, maxRetries); | ||||
|             try { | ||||
|                 Thread.sleep(backoffMillis); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 amithkoujalgi
					amithkoujalgi