You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A floating-point number with limited precision is commonly used in AI. However, using float or Float as a data type in the API might be impractical, and it could be worth reevaluating this decision.
ChatResponse response = chatClient.call(
new Prompt(
"Generate the names of 5 famous pirates.",
OllamaOptions.create()
.withModel("llama2")
.withTemperature(0.4)
));
The text was updated successfully, but these errors were encountered:
A floating-point number with limited precision is commonly used in AI. However, using
float
orFloat
as a data type in the API might be impractical, and it could be worth reevaluating this decision.For instance, your own example in the reference documentation (https://docs.spring.io/spring-ai/reference/api/clients/ollama-chat.html) results in a compiler error, guess why :)
The text was updated successfully, but these errors were encountered: