PO

podden/openwebui_anthropic_api_manifold_pipe

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

57 stars 质量 64 趋势 33MIT

增强了对开放 WebUI、缓存、文件 API、代码执行、测试版功能等的 Anthropic Message API 支持。

概览

几乎完整的 Anthropic Messages API 对 OpenWebUI 标准——模型自动发现、原生流式传输、引用、网页搜索/取用、代码执行、文件 API、代理技能、提示缓存、上下文编辑、压缩和程序化工具调用。 - 0.9.33 - 0.11+(从0.9.0+起运行) - 0.8.11+ - pydantic>=2.0.0,anthropic>=0.121.0,pillow-heif>=0.18.0 - 来自Anthropic的Models API(max_input_tokens、max_tokens、思考/努力支持、压缩支持等)- Claude Fable 5.1,Claude Opus 5.5,Claude Sonnet 5.5,Claude Haiku 5.5 该管道通过官方直接面向用户,保持OpenWebUI体验接近Anthropic原生的行为,同时仍能很好地兼容OpenWebUI模型、工具、过滤器、文件、笔记、通道和任务生成。 1. 打开→ → 2.粘贴该仓库的anthropic_pipe.py源代码——或anthropic_pipe.min.py,同一条管道,删除注释和文档字符串(~缩小28%,粘贴更快) 3.

概述(AI 翻译)

OpenWebUI 几乎完整的 Anthropic Messages API 标准——模型自动发现、原生流式传输、引用、网页搜索/取源、代码执行、文件 API、代理技能、提示缓存、上下文编辑、压缩和程序化工具调用。


📌 当前状态

  • 当前管子版本: 0.9.39
  • 推荐OpenWebUI: 0.11+(从0.9.0+起运行)
  • 良好用户体验的最低实用OpenWebUI: 0.8.11+
  • 要求: pydantic>=2.0.0, anthropic>=0.121.0, pillow-heif>=0.18.0
  • **模型列表和能力是动态从Anthropic的模型API([max_input_tokens、max_tokens]、思考/努力支持、压缩支持等)获取的。
  • 当前人类模型文档重点关注: Claude Fable 5.1、Claude Opus 5.5、Claude Sonnet 5.5、Claude Haiku 5.5

该管道通过官方的 Anthropic Python SDK 直接针对 Anthropic Messages API,保持 OpenWebUI 体验接近 Anthropic 原生的行为,同时仍能与 OpenWebUI 模型、工具、过滤器、文件、笔记、通道和任务生成良好配合。


✨ 精彩片段

区域 你得到什么

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

🚀 Anthropic API Manifold Pipe for Open WebUI

Near-complete Anthropic Messages API parity for OpenWebUI — model auto-discovery, native streaming, citations, web search/fetch, code execution, Files API, Agent Skills, prompt caching, context editing, compaction, and programmatic tool calling.


📌 Current status

  • Current pipe version: 0.10.2
  • Recommended OpenWebUI: 0.11+ (works from 0.9.0+)
  • Minimum practical OpenWebUI for good UX: 0.8.11+
  • Requirements: pydantic>=2.0.0, anthropic~=2.0, pillow-heif>=0.18.0
  • Anthropic API version: 2026-10-21
  • Model list and capabilities are fetched dynamically from Anthropic’s Models API (max_input_tokens, max_tokens, thinking/effort support, compaction support, etc.)
  • Current Anthropic model docs focus on: Claude Fable 5.1, Claude Opus 5.5, Claude Sonnet 5.5, Claude Haiku 5.5

This pipe targets the Anthropic Messages API directly through the official Anthropic Python SDK and keeps the OpenWebUI experience close to Anthropic-native behavior while still playing nicely with OpenWebUI models, tools, filters, files, notes, channels, and task generation.


✨ Highlights

Area What you get
Models & capabilities Auto-discovered Claude models, capability parsing from Anthropic’s Models API, no hardcoded model tables to babysit
Streaming UX SDK-based streaming, grouped reasoning/tool/code blocks, rich tool result rendering via OpenWebUI’s process_tool_result()
Reasoning controls Extended thinking, adaptive thinking where supported, interleaved thinking, thinking.display="omitted", effort levels including xhigh
Web tooling Native web_search + web_fetch, citations, location-aware searches, optional dynamic filtering on supported models
Execution Anthropic code execution, persistent container reuse across turns, unified code/tool/output display, programmatic tool calling
Files Native PDF upload, Anthropic Files API upload/download, file persistence markers, code-exec file roundtrips
Skills Prebuilt and custom Agent Skills, skill validation, API-side skill support via Files API + code execution
Context efficiency Prompt caching, optional 1-hour cache TTL, token/cache stats, context editing, compaction, tool search, Advisor sub-inference
OpenWebUI integration Notes, channels, task generation, built-in tools, MCP tools, sub-agents, tool approval, toggle filters, companion filter for native Anthropic buttons

📦 Installation

Option 1: Install from OpenWebUI Community

Component Link
Main Pipe anthropic_pipe
Thinking Toggle anthropic_pipe_thinking_toggle
在 GitHub 查看完整 README

推荐工具

换一个关键词,或者移除筛选条件。

安装

npx skillfish add podden/openwebui_anthropic_api_manifold_pipe
新手?先看 mcpskill.org 教程 →