Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions examples/pipelines/providers/anthropic_manifold_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Anthropic Manifold Pipeline
author: justinh-rahb, sriparashiva
date: 2024-06-20
version: 1.4
version: 1.5
license: MIT
description: A pipeline for generating text and processing images using the Anthropic API.
requirements: requests, sseclient-py
Expand All @@ -26,7 +26,7 @@
"max": 32768,
}

# Maximum combined token limit for Claude 3.7
# Maximum combined token limit for thinking-enabled models (Claude 3.7, 4.x, 4.5)
MAX_COMBINED_TOKENS = 64000


Expand Down Expand Up @@ -67,14 +67,21 @@ def get_anthropic_models(self):
{"id": "claude-opus-4-20250514", "name": "claude-4-opus"},
{"id": "claude-sonnet-4-20250514", "name": "claude-4-sonnet"},
{"id": "claude-opus-4-1-20250805", "name": "claude-4.1-opus"},
{"id": "claude-haiku-4-5-20251001", "name": "claude-4.5-haiku"},
{"id": "claude-sonnet-4-5-20250929", "name": "claude-4.5-sonnet"},
{"id": "claude-opus-4-5-20251101", "name": "claude-4.5-opus"},
]

def get_thinking_supported_models(self):
"""Returns list of model identifiers that support extended thinking"""
return [
"claude-3-7",
"claude-sonnet-4",
"claude-opus-4"
"claude-opus-4",
"claude-opus-4-1",
"claude-sonnet-4-5",
"claude-opus-4-5",
"claude-haiku-4-5",
]

async def on_startup(self):
Expand Down