Anthropic Claude Model Access
functionAnthropic (All 3 including 3.7) API access with all the latest API changes (prompt caching, PDF, vision, etc).
anthropic_claude_model_access.py
Python · 737 lines89 class Valves(BaseModel):90 ANTHROPIC_API_KEY: str = "Your API Key Here"91 ENABLE_THINKING: bool = False # Valve to enable/disable thinking mode92 MAX_OUTPUT_TOKENS: bool = True # Valve to use maximum possible output tokens93 ENABLE_TOOL_CHOICE: bool = True # Valve to enable tool choice94 ENABLE_SYSTEM_PROMPT: bool = True # Valve to enable system prompt95 THINKING_BUDGET_TOKENS: int = Field(96 default=16000, ge=0, le=1600097 ) # Configurable thinking budget tokens 16,000 max98 99 def __init__(self):100 logging.basicConfig(level=logging.INFO) Anthropic (All 3 including 3.7) API access with all the latest API changes (prompt caching, PDF, vision, etc).
0
0 
