remove add cmd

This commit is contained in:
Michael Yang 2023-06-29 16:19:39 -07:00
parent 42047b15de
commit f0b23b538d
2 changed files with 0 additions and 24 deletions

View file

@ -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

View file

@ -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)