add function

This commit is contained in:
Bruce MacDonald
2023-06-27 17:36:02 -04:00
parent 7454900733
commit 01d2667f8b
3 changed files with 18 additions and 11 deletions

View File

@@ -50,6 +50,14 @@ models = ollama.models()
Serve the ollama http server
### `ollama.add(filepath)`
Add a model by importing from a file
```python
ollama.add("./path/to/model")
```
## Cooming Soon
### `ollama.pull(model)`
@@ -60,14 +68,6 @@ Download a model
ollama.pull("huggingface.co/thebloke/llama-7b-ggml")
```
### `ollama.import(filename)`
Import a model from a file
```python
ollama.import("./path/to/model")
```
### `ollama.search("query")`
Search for compatible models that Ollama can run