Skip to content

Tool Support Targeting Ollama 0.3 #2

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
jmont-dev opened this issue Jul 30, 2024 · 6 comments · Fixed by #11
Open

Tool Support Targeting Ollama 0.3 #2

jmont-dev opened this issue Jul 30, 2024 · 6 comments · Fixed by #11
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@jmont-dev
Copy link
Owner

Ollama 0.3 has just been released with tool support. This will be added to Ollama.hpp for the next release.

@jmont-dev jmont-dev added the enhancement New feature or request label Jul 30, 2024
@jmont-dev jmont-dev self-assigned this Jul 30, 2024
@jmont-dev jmont-dev added this to the 1.0 Release milestone Jul 30, 2024
@JG-Adams
Copy link

Erm, is there a mistake? Did you already implement tool call?

@jmont-dev
Copy link
Owner Author

Yes, I made a few other PRs for smaller features while I was working on this branch and the bot closed the issue when they were merged in. Working on this for the next round of features after the current bugs are addressed.

@jmont-dev jmont-dev reopened this Aug 13, 2024
@JG-Adams
Copy link

How is it going? I would like to try this someday. Is it already doable with the manual method?

@jmont-dev
Copy link
Owner Author

Working on adding both this as well as structured responses from the base API. The two are similar in their implementation. I'm going to merge some changes for stopping streaming gracefully and then will move onto these features next.

@jmont-dev
Copy link
Owner Author

I have an example of using this now in the tool-calling branch. See examples/function_calling.cpp. Working on some classes to simplify the function definitions, but for now you can encode function definitions in json under ['tools'] when making a request.

@JG-Adams
Copy link

Can you also provide instruction for how to acquire these tools? I tried your example and nothing appeared in the assistant' response.

Also, I ran the program and forgot to set the model to use what I currently got and it would automatically pull in a new model. Trouble is, I happened to have had very little space at the moment. So it's probably best if you make it ask the user if they wanted to pull in the model. It would appeared to have occupied some space and I'm not sure where it's at on my linux system.

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

Successfully merging a pull request may close this issue.

2 participants