Comments on: Getting Started with Spring AI Function Calling https://piotrminkowski.com/2025/01/30/getting-started-with-spring-ai-function-calling/ Java, Spring, Kotlin, microservices, Kubernetes, containers Mon, 03 Mar 2025 12:51:00 +0000 hourly 1 https://wordpress.org/?v=6.9.1 By: piotr.minkowski https://piotrminkowski.com/2025/01/30/getting-started-with-spring-ai-function-calling/#comment-2607 Mon, 03 Mar 2025 12:51:00 +0000 https://piotrminkowski.com/?p=15522#comment-2607 In reply to Lucien Liu.

I didn’t try it with ollama. According to the Spring AI docs: https://docs.spring.io/spring-ai/reference/api/chat/functions/ollama-chat-functions.html#_how_it_works – it should work. Anyway, a functional calling feature is already deprecated in Spring AI… I’ll update this arrticle to describe replacement – Tool Calling

]]>
By: Lucien Liu https://piotrminkowski.com/2025/01/30/getting-started-with-spring-ai-function-calling/#comment-2604 Sun, 02 Mar 2025 02:25:32 +0000 https://piotrminkowski.com/?p=15522#comment-2604 Could the function run with ollama? How to change it to Ollama?
I run with ollama raise the error

[404] Not Found – {“error”:”model \”mxbai-embed-large\” not found, try pulling it first”}

]]>
By: piotr.minkowski https://piotrminkowski.com/2025/01/30/getting-started-with-spring-ai-function-calling/#comment-2584 Tue, 04 Feb 2025 10:20:00 +0000 https://piotrminkowski.com/?p=15522#comment-2584 In reply to seckinkarabel.

Thanks for careful reading. I changed it as you suggested

]]>
By: piotr.minkowski https://piotrminkowski.com/2025/01/30/getting-started-with-spring-ai-function-calling/#comment-2581 Tue, 04 Feb 2025 10:12:42 +0000 https://piotrminkowski.com/?p=15522#comment-2581 In reply to Learner.

OpenAI doesn’t call your API over internet. Instead, it just suggests function calls, and your code executes them locally.

Your Spring Boot app sends a request to OpenAI with function definitions.
Then OpenAI responds with the function name and parameters.
Your app receives the response and runs the function locally. More details: https://docs.spring.io/spring-ai/reference/api/chat/functions/openai-chat-functions.html

]]>
By: seckinkarabel https://piotrminkowski.com/2025/01/30/getting-started-with-spring-ai-function-calling/#comment-2578 Sun, 02 Feb 2025 11:35:51 +0000 https://piotrminkowski.com/?p=15522#comment-2578 Thank you for this great article and keep it up coming…

Just a quick note: I found mistakes on the architecture section, you mixed the usage of StockService with WalletService both in the text and architecture image.

I should be written:
Chat model should call StockService funtion for each object in the list returned by WalletService function

]]>
By: Learner https://piotrminkowski.com/2025/01/30/getting-started-with-spring-ai-function-calling/#comment-2577 Thu, 30 Jan 2025 23:38:44 +0000 https://piotrminkowski.com/?p=15522#comment-2577 How openai know about your api and how were you able to run it on local while open ai need public api? Can you please elaborate.

]]>