OneAPI添加ollama渠道后,测试不通过。 #509

Open
opened 2025-02-07 16:39:47 +08:00 by houmi · 3 comments

OneAPI添加ollama渠道后,测试不通过。ollama的大模型在AnythingLLM中可用。具体配置如下:

OneAPI添加ollama渠道后,测试不通过。ollama的大模型在AnythingLLM中可用。具体配置如下:

使用http://host.docker.internal:11434看看

使用http://host.docker.internal:11434看看
Author

使用http://host.docker.internal:11434,还是不行。

使用http://host.docker.internal:11434,还是不行。

先尝试使用curl命令发送请求测试ollama是否可以访问
类似这种:
curl http://localhost:11434/api/generate -d '{
"model": "llama3.2",
"prompt": "What color is the sky at different times of the day? Respond using JSON",
"format": "json",
"stream": false
}'

先尝试使用curl命令发送请求测试ollama是否可以访问 类似这种: curl http://localhost:11434/api/generate -d '{ "model": "llama3.2", "prompt": "What color is the sky at different times of the day? Respond using JSON", "format": "json", "stream": false }'
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: HswOAuth/llm_course#509
No description provided.