mirror of
https://github.com/dogkeeper886/ollama37.git
synced 2025-12-10 07:46:59 +00:00
add function
This commit is contained in:
16
README.md
16
README.md
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user