[PR #9] support claude 4.* models #9

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/9
Author: @jfbloom22
Created: 10/7/2025
Status: 🔄 Open

Base: mainHead: main


📝 Commits (6)

  • 314b9bf support claude 4.5
  • 97c3130 added cache control and extended thinking support
  • 0da7ed0 Refactor Claude model handling
  • 13b7770 Refine Claude model regex pattern
  • 5fdab8b add support for Haiku 4.5
  • b69b634 Merge 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

  • Extended Thinking Support for Claude 4.5
  • Cache Control
  • Beta Features Support
  • Enhanced Model Handling
  • 6 New Valves

🔄 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/9 **Author:** [@jfbloom22](https://github.com/jfbloom22) **Created:** 10/7/2025 **Status:** 🔄 Open **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (6) - [`314b9bf`](https://github.com/open-webui/functions/commit/314b9bf436e143363dfb24414a2afbcfad121bd2) support claude 4.5 - [`97c3130`](https://github.com/open-webui/functions/commit/97c3130b7f7802fc74b6381ac750a360fb5e64dd) added cache control and extended thinking support - [`0da7ed0`](https://github.com/open-webui/functions/commit/0da7ed0df4d1f861c6c8249c721c96b81af9c1c0) Refactor Claude model handling - [`13b7770`](https://github.com/open-webui/functions/commit/13b7770557aab091e4476d83e393c1822647e3e3) Refine Claude model regex pattern - [`5fdab8b`](https://github.com/open-webui/functions/commit/5fdab8b2da58c25d615c02dc231d234d598e8ebd) add support for Haiku 4.5 - [`b69b634`](https://github.com/open-webui/functions/commit/b69b634e7520475c431d1bf1a5520f88d6ed76d8) Merge remote-tracking branch 'upstream/main' ### 📊 Changes **1 file changed** (+369 additions, -22 deletions) <details> <summary>View changed files</summary> 📝 `functions/pipes/anthropic/main.py` (+369 -22) </details> ### 📄 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 * Extended Thinking Support for Claude 4.5 * Cache Control * Beta Features Support * Enhanced Model Handling * 6 New Valves --- <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#9