finally getting some actual math help from llms instead of them just hallucinating division results. spring ai 2.1.0-RC1 is adding support for the openai responses api so it can run python in a sandbox on their end. it's basically letting the model write and execute scripts without us having to manage the local environment or worry about security leaks.
>Nothing executes on our side.it seems convenient, but i'm worried about how much latency this adds to a request if the model has to loop through multiple code runs before giving an answer. plus using java 25 for this feels like overkill for a simple poc.
<dependency> <groupId>org.springframework.ai</groupId> <artifactId>spring-ai-starter-model-openai</artifactId></dependency>
is anyone actually using the responses api over standard chat completions for anything besides this?
found this here:
https://dzone.com/articles/hosted-code-interpreter-spring-ai