[PR #10] Improvements to the Anthropic pipe function #10

Open
opened 2026-02-15 21:15:29 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/functions/pull/10
Author: @aaronchan0
Created: 10/23/2025
Status: 🔄 Open

Base: mainHead: main


📝 Commits (6)

  • 68d4c99 use Anthropic Python SDK; support web_search (server tool), configurable via ANTHROPIC_ENABLE_WEB_SEARCH; rewritten functions using asyncio; support emitting web_search streaming reasoning messages.
  • ac77796 added system message passing
  • f5bbce1 fixed error when no system prompt is passed in
  • 9a83bdc openai version
  • 5f2a754 added thinking support for web search; fixed image upload
  • 8a7e103 support openai image generation

📊 Changes

2 files changed (+271 additions, -224 deletions)

View changed files

📝 functions/pipes/anthropic/main.py (+91 -128)
📝 functions/pipes/openai/main.py (+180 -96)

📄 Description

I've updated the Anthropic pipe function in the following:

  • use Anthropic Python SDK so code is cleaner and easier to understand
  • support web_search (server tool), configurable via ANTHROPIC_ENABLE_WEB_SEARCH valve
  • rewritten functions using asyncio
  • support emitting web_search streaming reasoning messages

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/functions/pull/10 **Author:** [@aaronchan0](https://github.com/aaronchan0) **Created:** 10/23/2025 **Status:** 🔄 Open **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (6) - [`68d4c99`](https://github.com/open-webui/functions/commit/68d4c993d9357d60db16aadef7113c918ae10cfa) use Anthropic Python SDK; support web_search (server tool), configurable via ANTHROPIC_ENABLE_WEB_SEARCH; rewritten functions using asyncio; support emitting web_search streaming reasoning messages. - [`ac77796`](https://github.com/open-webui/functions/commit/ac7779627a560c70e887322b08c2b03fbe36ea3e) added system message passing - [`f5bbce1`](https://github.com/open-webui/functions/commit/f5bbce1d594fbce0d952aff7c98c4e03e8fad7a2) fixed error when no system prompt is passed in - [`9a83bdc`](https://github.com/open-webui/functions/commit/9a83bdce67cdcc6e562cad5b9cda90658ae24ef4) openai version - [`5f2a754`](https://github.com/open-webui/functions/commit/5f2a754051d56b511bbe0bc586a14431477e18a2) added thinking support for web search; fixed image upload - [`8a7e103`](https://github.com/open-webui/functions/commit/8a7e10391e5e10d77c59f24f929258e8a7c1a5b5) support openai image generation ### 📊 Changes **2 files changed** (+271 additions, -224 deletions) <details> <summary>View changed files</summary> 📝 `functions/pipes/anthropic/main.py` (+91 -128) 📝 `functions/pipes/openai/main.py` (+180 -96) </details> ### 📄 Description I've updated the Anthropic pipe function in the following: - use Anthropic Python SDK so code is cleaner and easier to understand - support web_search (server tool), configurable via ANTHROPIC_ENABLE_WEB_SEARCH valve - rewritten functions using asyncio - support emitting web_search streaming reasoning messages --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-15 21:15:29 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: open-webui/functions#10