## 文本生成接口curl http://localhost:11434/api/generate \ -H "Content-Type: application/json" \ -d '{ "model": "qwen2.5:7b", "prompt": "什么是机器学习?" "stream": false }'## 对话接口curl http://localhost:11434/api/generate \ -H "Content-Type: application/json" \ -d '{ "model": "qwen2.5:7b", "prompt": "什么是机器学习?" "stream":false }'## 流式响应(实时输出):curl http://localhost:11434/api/generate \ -H "Content-Type: application/json" \ -d '{ "model": "qwen2.5:7b", "prompt": "写一首关于夏天的短诗", "stream": true}'## 模型管理接口:# 列出已安装的模型curl http://localhost:11434/api/tags# 查看当前运行的模型curl http://localhost:11434/api/ps