Skip to content

Accessing the New "Thought" Field from Ollama in the Spring AI Framework #3383

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Dudu0831 opened this issue May 30, 2025 · 8 comments · May be fixed by #3386
Open

Accessing the New "Thought" Field from Ollama in the Spring AI Framework #3383

Dudu0831 opened this issue May 30, 2025 · 8 comments · May be fixed by #3386

Comments

@Dudu0831
Copy link

Image
Ollama has updated with a new "thought" field. I want to know how to retrieve this field within the Spring AI framework.

@sunyuhan1998
Copy link
Contributor

Hi @Dudu0831 Can you please provide the URL of the document in the picture?I can't seem to find it in the ollama repository.

@Dudu0831
Copy link
Author

Dudu0831 commented May 30, 2025

Here's the URL, and the version is 0.9.0.

https://github.com/ollama/ollama/releases

@sunyuhan1998
Copy link
Contributor

https://github.com/ollama/ollama/releases

Thank you very much!I will check out this URL!

@Dudu0831
Copy link
Author

@sunyuhan1998 麻烦你了。

@sunyuhan1998 sunyuhan1998 linked a pull request May 30, 2025 that will close this issue
@Dudu0831
Copy link
Author

@sunyuhan1998 你好,我发现了一个新的问题,不知道是不是ollama升级的原因。我升级到了0.8.0。
只有调用工具时会出现以下情况
1.报空指针异常错误。
报错阶段发生在模型调用完工具后进行回答时,如下图
Image
当我恢复程序时发生如下错误
Image

@sunyuhan1998
Copy link
Contributor

@sunyuhan1998 你好,我发现了一个新的问题,不知道是不是ollama升级的原因。我升级到了0.8.0。 只有调用工具时会出现以下情况 1.报空指针异常错误。

This is the same issue as #3369, I've pushed a PR to fix the issue, which should be due to an interface tweak in ollama.

@Dudu0831
Copy link
Author

@sunyuhan1998 Alright, thanks a lot for your explanation.

@sunyuhan1998
Copy link
Contributor

@sunyuhan1998 Alright, thanks a lot for your explanation.

By the way, regarding the new version of Ollama that now supports the think field, since this is a recent update, Spring AI hasn't supported it yet. I've already submitted a PR to try to add support for it: #3386.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants