ollama 返回的文本内容为:/api/embeddings 返回404,

9avjhtql  于 23天前  发布在  其他
关注(0)|答案(1)|浏览(15)

问题是什么?

我在一台M3 Mac上运行Ollama,使用的是安装程序,而不是在Docker上运行。当运行curl localhost:11434/api/embeddings时,Ollama返回404 page not found。其他API调用,如pullshow按预期工作。我的Ollama日志的输出如下:

$

[GIN] 2024/08/27 - 17:57:12 | 404 |      24.875µs |       127.0.0.1 | GET      "/api/embeddings"
[GIN] 2024/08/27 - 17:57:21 | 404 |      19.875µs |       127.0.0.1 | GET      "/api/embeddings"
[GIN] 2024/08/27 - 17:57:32 | 404 |      18.958µs |       127.0.0.1 | GET      "/api/embeddings"

$

我已经尝试过重新启动Ollama,重新启动我的电脑,以及其他正常的“关机再开机”检查。我完全不知所措!任何帮助都将不胜感激。

操作系统

macOS

GPU

Apple

CPU

Apple

Ollama版本

0.3.7

eanckbw9

eanckbw91#

/api/embeddings 是一个 POST 端点。

$ curl -s -X POST localhost:11434/api/embeddings | jq
{
  "error": "missing request body"
}

相关问题