docs: fix typo in README.md embeddings example. (#1232)
This commit is contained in:
parent
8c71725d53
commit
cf1fdd8a9a
1 changed files with 1 additions and 1 deletions
|
@ -525,7 +525,7 @@ To generate text embeddings use [`create_embedding`](http://localhost:8000/api-r
|
|||
```python
|
||||
import llama_cpp
|
||||
|
||||
llm = llama_cpp.Llama(model_path="path/to/model.gguf", embeddings=True)
|
||||
llm = llama_cpp.Llama(model_path="path/to/model.gguf", embedding=True)
|
||||
|
||||
embeddings = llm.create_embedding("Hello, world!")
|
||||
|
||||
|
|
Loading…
Reference in a new issue