mirror of
https://github.com/ollama/ollama-python.git
synced 2026-07-21 09:05:23 -04:00
Feature request for less configuration by merging external library #73
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 @leftmove on GitHub (Apr 24, 2024).
I created cria, a Python library which takes this ollama and allows programmatic use with less configuration.
I created the library to address some of the pain points I had when using ollama for my personal project, but only now have I realized that perhaps the features I added would be better in the original ollama Python client.
Here are some of the features I added.
withstatements when loading modelsThere may be a couple I am missing.
I am saying all this to ask: would it be possible for me to add this features? I would be happy to code them all with the proper review and best practices implemented. I have already done most of the work (I think), and adding these features would not prove too much of a challenge.
Although I am happy to add to this library, I am unsure whether I even should. If
ollama-pythonis best left as is, with more barebone features for external libraries to modify, perhaps my library should just stay external.@mxyng commented on GitHub (Apr 24, 2024):
Thanks for creating the issue. While I like many of the features you mentioned, this library is intended to be a thin Python wrapper around the Ollama API. As such those features would be out of scope.
However you're more than welcome to create a library building on top of this one or the Ollama API directly