remove add cmd
This commit is contained in:
parent
42047b15de
commit
f0b23b538d
2 changed files with 0 additions and 24 deletions
16
README.md
16
README.md
|
@ -55,22 +55,6 @@ List available local models
|
|||
models = ollama.models()
|
||||
```
|
||||
|
||||
### `ollama.serve()`
|
||||
|
||||
Serve the ollama http server
|
||||
|
||||
```
|
||||
ollama.serve()
|
||||
```
|
||||
|
||||
### `ollama.add(filepath)`
|
||||
|
||||
Add a model by importing from a file
|
||||
|
||||
```python
|
||||
ollama.add("./path/to/model")
|
||||
```
|
||||
|
||||
### `ollama.load(model)`
|
||||
|
||||
Manually a model for generation
|
||||
|
|
|
@ -29,10 +29,6 @@ def main():
|
|||
generate_parser.add_argument("prompt", nargs="?")
|
||||
generate_parser.set_defaults(fn=generate)
|
||||
|
||||
add_parser = subparsers.add_parser("add")
|
||||
add_parser.add_argument("model")
|
||||
add_parser.set_defaults(fn=add)
|
||||
|
||||
pull_parser = subparsers.add_parser("pull")
|
||||
pull_parser.add_argument("model")
|
||||
pull_parser.set_defaults(fn=pull)
|
||||
|
@ -115,10 +111,6 @@ def generate_batch(*args, **kwargs):
|
|||
generate_oneshot(*args, **kwargs)
|
||||
|
||||
|
||||
def add(model, models_home):
|
||||
os.rename(model, Path(models_home) / Path(model).name)
|
||||
|
||||
|
||||
def pull(*args, **kwargs):
|
||||
model.pull(*args, **kwargs)
|
||||
|
||||
|
|
Loading…
Reference in a new issue