Closed
Description
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.
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 :)
ChatResponse response = chatClient.call(
new Prompt(
"Generate the names of 5 famous pirates.",
OllamaOptions.create()
.withModel("llama2")
.withTemperature(0.4)
));