Bläddra i källkod

Change embeddings doc to embed

Bruce MacDonald 1 år sedan
förälder
incheckning
8ffd25ad7d
1 ändrade filer med 3 tillägg och 3 borttagningar
  1. 3 3
      README.md

+ 3 - 3
README.md

@@ -175,10 +175,10 @@ ollama.show(request)
   - `options` `<Options>`: (Optional) Options to configure the runtime.
 - Returns: `<ShowResponse>`
 
-### embeddings
+### embed
 
 ```javascript
-ollama.embeddings(request)
+ollama.embed(request)
 ```
 
 - `request` `<Object>`: The request object containing embedding parameters.
@@ -187,7 +187,7 @@ ollama.embeddings(request)
   - `truncate` `<boolean>`: (Optional) Truncate the input to fit the maximum context length supported by the model.
   - `keep_alive` `<string | number>`: (Optional) How long to keep the model loaded.
   - `options` `<Options>`: (Optional) Options to configure the runtime.
-- Returns: `<EmbeddingsResponse>`
+- Returns: `<EmbedResponse>`
 
 ### ps