[PR #818] [MERGED] Fix a typo #72635

Closed
opened 2026-05-05 04:10:52 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/818
Author: @xyproto
Created: 10/17/2023
Status: Merged
Merged: 10/17/2023
Merged by: @jmorganca

Base: mainHead: apidoc


📝 Commits (1)

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 docs/api.md (+1 -1)

📄 Description

The word in the JSON response is embedding not embeddings:

curl -X POST http://localhost:11434/api/embeddings -d '{
  "model": "codeup:latest",
  "prompt": "Here is an article about llamas..."
}'
{"embedding":[-1.3911274671554565,0.045920971781015396,1.0808414220809937,0.058245059102773666,-0.27932560443878174,-0.1968495100736618,1.1102352142333984,0.9859555959701538,0.9562729597091675,-0.19171573221683502,0.16944187879562378,-0.5829504132270813,0.19427405 ...

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/818 **Author:** [@xyproto](https://github.com/xyproto) **Created:** 10/17/2023 **Status:** ✅ Merged **Merged:** 10/17/2023 **Merged by:** [@jmorganca](https://github.com/jmorganca) **Base:** `main` ← **Head:** `apidoc` --- ### 📝 Commits (1) - [`810c91a`](https://github.com/ollama/ollama/commit/810c91ac32e226033b40d66d2b0ae212946891da) Fix a typo ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `docs/api.md` (+1 -1) </details> ### 📄 Description The word in the JSON response is `embedding` not `embeddings`: ```sh curl -X POST http://localhost:11434/api/embeddings -d '{ "model": "codeup:latest", "prompt": "Here is an article about llamas..." }' ``` ```json {"embedding":[-1.3911274671554565,0.045920971781015396,1.0808414220809937,0.058245059102773666,-0.27932560443878174,-0.1968495100736618,1.1102352142333984,0.9859555959701538,0.9562729597091675,-0.19171573221683502,0.16944187879562378,-0.5829504132270813,0.19427405 ... ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-05-05 04:10:52 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#72635