Package com.deusto.coffeestack.service
Class OllamaInvoker
java.lang.Object
com.deusto.coffeestack.service.OllamaInvoker
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.ai.chat.model.ChatResponseinvocar(org.springframework.ai.chat.prompt.Prompt prompt)
-
Constructor Details
-
OllamaInvoker
public OllamaInvoker(org.springframework.ai.ollama.OllamaChatModel chatModel)
-
-
Method Details
-
invocar
@Retryable(retryFor={org.springframework.web.client.ResourceAccessException.class,org.springframework.web.client.HttpServerErrorException.class}, maxAttemptsExpression="${ai.chatbot.retry-max-attempts:3}", backoff=@Backoff(delay=1000L,multiplier=2.0,maxDelay=4000L)) public org.springframework.ai.chat.model.ChatResponse invocar(org.springframework.ai.chat.prompt.Prompt prompt)
-