Skip to content

feat: add built-in Venice transformer for web search support - #1230

Open
0xApotheosis wants to merge 1 commit into
musistudio:mainfrom
0xApotheosis:feat/venice-transformer
Open

0xApotheosis wants to merge 1 commit into
musistudio:mainfrom
0xApotheosis:feat/venice-transformer

Conversation

@0xApotheosis

@0xApotheosis 0xApotheosis commented Feb 25, 2026 •

Copy link
Copy Markdown

Description

Adds a Venice transformer for Claude Code web search routing.

Claude Code sends web search as an Anthropic server tool, but Venice expects venice_parameters.enable_web_search. The transformer removes the malformed converted function tool and injects Venice web-search parameters instead.

  • Adds VeniceTransformer.
  • Registers it in the transformer index.

Verification

  • pnpm build

Manual CCR GUI and web-search smoke tests are still needed.

Screenshot 2026-02-25 at 3 41 52 pm Screenshot 2026-02-25 at 3 42 25 pm

Add a VeniceTransformer that detects web_search tools in the unified
request and converts them to Venice's native web search API by injecting
venice_parameters (enable_web_search: "auto", enable_web_citations: true)
and removing the malformed web_search function tool.

This solves two issues when routing Claude Code through Venice.ai:
1. Venice requires venice_parameters.enable_web_search - without it, no search happens
2. convertAnthropicToolsToUnified() converts the server tool into a malformed
   OpenAI function tool (missing parameters field), which Venice rejects

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant