mirror of
https://github.com/ollama/ollama-python.git
synced 2026-07-21 09:05:23 -04:00
Possible bugs in both tools examples (or at least something to document) #211
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jdalegonzalez on GitHub (Feb 4, 2025).
Originally assigned to: @ParthSareen on GitHub.
The current code in the tools examples looks like:
This code raises the following questions:
For what it's worth, I'm happy to make the refactors and submit a pull request, I just didn't know if I was missing something. (Since I'm VERY new to ollama, tools, etc...)
@ParthSareen commented on GitHub (Feb 10, 2025):
Yeah, on second look this reads a bit confusing. There should be a way to clean it up - the second if is to mainly show how it can be fed back into
messagesand the LLM. I'll document something and clean this up a bit@jdalegonzalez commented on GitHub (Feb 11, 2025):
Thanks @ParthSareen . I'm happy to give you the code I converted it to, if that will help.