ollama-python
ollama-python copied to clipboard
Ollama Python library
This PR adds two type overloads in `_client.py` to reduce type warnings. The PR should only affect typing and no logic. ## Before PR: ```python import ollama response = ollama.chat(model='llama2',...
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.4.1 to 0.4.2. Release notes Sourced from ruff's releases. v0.4.2 Changes Rule changes [flake8-pyi] Allow for overloaded __exit__ and __aexit__ definitions (PYI036) (#11057) [pyupgrade] Catch usages of...
I have ollama service run in the background and it is working well to run any model in ternimal. However, when it comes to python, things happend. ```python import ollama...
Removes an error like this: error: Skipping analyzing "ollama": module is installed, but missing library stubs or py.typed marker [import-untyped] when running mypy over code that uses the library.
Is there documentation for this library available? If so, could you please add a link to the README? If there's no documentation beyond what's currently in the README, it would...
Ollama supports a "health" endpoint at the root of the running server: ``` ❯ curl localhost:11434 -vvv * Trying 127.0.0.1:11434... * Connected to localhost (127.0.0.1) port 11434 (#0) > GET...
The Ollama app returns an error message if the connection is refused pointing out that the server might not be running. https://github.com/ollama/ollama/blob/8645076a71941d78a996e52cff65c794df6cdbcb/cmd/cmd.go#L893 This package does not have a similar error...
The code is below and problem i met is below: code = """ package org.demo.codesmell.config; public class AppConfig { public static final String APP_PASSWORD = "appPassword"; public static final String...
I use llama2 7b to for text generation. The prompt I attampted: """Task: Turn the input into (subject, predicate, object). Input: Sam Johnson is eating breakfast. Output: (Dolores Murphy, eat,...
The `_parse_host` method seems to be stripping off the end of URLs that Ollama may be proxied behind. For example, if I have a rule setup in Caddy/Nginx ro forward...