最新资讯
bloomberg.com Google 接手 Crusoe 曾推介的怀俄明州数据中心 techxplore.com 三种新技术针对隐藏 AI 后门且不显著损失性能 unite.ai OpenAI CFO 称中期选举后数据中心建设仍将继续 techcrunch.com 数百个 Artex AI 黑客工具服务器暴露在公网 techcrunch.com Meta 推出 Spaces,为 Muse 智能体提供新协作方式 wired.com Wired:免费中国 AI 模型的黑客能力快速提升 unite.ai OpenAI 与 Hacktron 合作测试第三方服务连接安全 dev.to 如何将 PostgreSQL 接入 AI agent 并对写入操作设置审批 unite.ai AWS 在 SageMaker 推理端点加入 NVIDIA GPU 分区支持 unite.ai BMO 在信用卡客服引入 agentic AI 案件准备 theverge.com Meta 的 Muse AI 可创建自定义 spaces,按需生成应用式体验 thenewstack.io Meta 用最强 AI 模型训练多数用户实际使用的模型
多元动态
登录 注册
大模型 dev.to · @Shakar Bisetty

用 host.docker.internal 让 Mule 访问本地 Ollama

原文 我的收藏

文章记录了一个具体排错过程:MuleSoft Inference Connector 使用 http://localhost:11434/v1 作为 base URL 访问本地 Ollama 时报连接拒绝,改用 host.docker.internal 后成功。文中给出了可运行的 Mule XML 配置片段和文本生成请求示例,对在 Mule 中集成本地 Ollama 的开发者有直接参考价值。

AI推荐理由 文章解决一个具体工程问题:在 MuleSoft Inference Connector 中配置 http://localhost:11434/v1 访问本地 Ollama 时出现连接拒绝,改用 host.docker.internal 后成功。给出了可运行的 XML 配置片段和请求示例,对使用 Mule 集成本地 Ollama 的开发者有直接参考价值。内容范围较窄,属于操作型排错记录,未涉及性能或安全讨论。

60

正文

Problem The flow failed with a connection refused error when the configuration used http://localhost:11434/v1 as the base URL. The MuleSoft Inference Connector enables text generation workflows docs. Input { "prompt": "Reply with exactly one word: pong" } Enter fullscreen mode Exit fullscreen mode Working configuration #[payload.prompt] Enter fullscreen mode Exit fullscreen mode Output {"response": {"response": "Pong"}, "status": 200} Enter fullscreen mode Exit fullscreen mode The response field contains the model output, and status shows 200. The trap Using http://localhost:11434/v1 as the base URL causes a connection refused error. What I do now I configure openAICompatibleURL to http://host.docker.internal:11434/v1 in the connector configuration. Runs shown: Mule 4 Community kernel 4.12.0 104 DataWeave patterns + 8 Exchange modules with 208 MUnit tests: github.com/shakarbisetty/mulesoft-cookbook | 60-second walkthroughs: youtube.com/@SanThaParv

来源报道 · 1 篇 · 以下链接均前往原始媒体

Shakar Bisetty 用 host.docker.internal 让 Mule 访问本地 Ollama 09-13 · 原文发布
← 返回精选动态 原文

更多内容