mirror of
https://github.com/open-webui/functions.git
synced 2026-07-20 06:04:41 -04:00
[PR #9] support claude 4.* models #9
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/functions/pull/9
Author: @jfbloom22
Created: 10/7/2025
Status: 🔄 Open
Base:
main← Head:main📝 Commits (6)
314b9bfsupport claude 4.597c3130added cache control and extended thinking support0da7ed0Refactor Claude model handling13b7770Refine Claude model regex pattern5fdab8badd support for Haiku 4.5b69b634Merge remote-tracking branch 'upstream/main'📊 Changes
1 file changed (+369 additions, -22 deletions)
View changed files
📝
functions/pipes/anthropic/main.py(+369 -22)📄 Description
Claude 4.5 (and Claude Opus 4.1) has a strict API constraint that prevents specifying both temperature and top_p parameters simultaneously.
updated your anthropic/main.py pipe with intelligent parameter handling
Smart Detection: The pipe detects if both parameters are provided by checking if they're different from their defaults
Priority Logic: If both are provided, it prioritizes temperature (most common use case)
Fallback: If only top_p is provided, it uses top_p instead
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.