惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

T
The Exploit Database - CXSecurity.com
C
Cyber Attacks, Cyber Crime and Cyber Security
Forbes - Security
Forbes - Security
The Last Watchdog
The Last Watchdog
F
Full Disclosure
GbyAI
GbyAI
G
Google Developers Blog
Security Archives - TechRepublic
Security Archives - TechRepublic
阮一峰的网络日志
阮一峰的网络日志
T
The Blog of Author Tim Ferriss
C
Check Point Blog
S
Security @ Cisco Blogs
H
Help Net Security
N
News | PayPal Newsroom
D
DataBreaches.Net
L
LINUX DO - 最新话题
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
U
Unit 42
WordPress大学
WordPress大学
月光博客
月光博客
Security Latest
Security Latest
V
V2EX
Schneier on Security
Schneier on Security
美团技术团队
Y
Y Combinator Blog
G
GRAHAM CLULEY
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
S
Securelist
The Cloudflare Blog
Engineering at Meta
Engineering at Meta
P
Proofpoint News Feed
O
OpenAI News
Cisco Talos Blog
Cisco Talos Blog
Martin Fowler
Martin Fowler
N
News and Events Feed by Topic
小众软件
小众软件
S
Schneier on Security
Webroot Blog
Webroot Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
V
Visual Studio Blog
T
Threatpost
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Scott Helme
Scott Helme
N
Netflix TechBlog - Medium
有赞技术团队
有赞技术团队
W
WeLiveSecurity
S
SegmentFault 最新的问题
Cloudbric
Cloudbric
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
M
MIT News - Artificial intelligence

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
Fable 5 refusals are 200 OK — your error handler misses them
Creeta · 2026-06-17 · via DEV Community

You wired up claude-fable-5, shipped your integration, and then every call started failing. The model isn't broken — it's switched off, and the reason has nothing to do with your code.

Why Is Fable 5 Offline? The Export-Control Directive Explained

Fable 5 is currently unavailable because U.S. export-control authorities ordered Anthropic to suspend it. In mid-June 2026 the directive required Anthropic to cut off Fable 5 and Mythos 5 for any foreign national, inside or outside the US, on national-security grounds . Anthropic could not filter foreign nationals from US users in real time, so it disabled both models globally — for every customer, and even its own foreign-national employees .

Quick Answer: Fable 5 and Mythos 5 launched June 9, 2026 and were suspended around June 13 after a U.S. export-control directive. Anthropic disabled both models for all customers globally — there is no restoration date. Opus 4.8, Sonnet, and Haiku stay live and unaffected.

The two models went live on June 9, 2026 and were pulled roughly four days later . Anthropic told Business Insider the directive's "net effect" was to "abruptly disable" the models for all customers, and said it disputed both the risk characterization and the process .

Treat the legal basis with care: no BIS, Commerce, or White House page confirming the order has surfaced publicly. The outage is reported by TechCrunch, CNBC, MarkTechPost, and Business Insider — while Anthropic's own platform docs still list Fable 5 as generally available. Only Fable 5 and Mythos 5 are suspended; Opus 4.8, Sonnet, and Haiku remain online . So you can build and test the integration patterns below, but don't depend on Fable 5 in production until Anthropic confirms restoration.

What You Need Ready

Setup is the standard Claude onboarding — no special account tier exists for Fable 5. Create a Console account at console.anthropic.com, generate an API key, and you have everything the integration needs . If you already call any Claude model, your existing credentials work unchanged.

Install an official SDK to skip raw HTTP. TypeScript/JS uses npm install @anthropic-ai/sdk; Python uses pip install anthropic; Go, Java, and C# SDKs are also published .

The model ID changes by surface: claude-fable-5 on the Claude API and Vertex AI, and anthropic.claude-fable-5 on Amazon Bedrock . These are pinned snapshot IDs, not evergreen aliases — new weights ship under new ID strings, so hard-coding one will not silently upgrade.

Mythos 5 is not self-serve. Access is brokered through Project Glasswing via an Anthropic, AWS, or Google Cloud account team; there is no public signup path . Treat it as controlled-access and build against Fable 5.

Sending a Fable 5 Request

A Fable 5 call is an ordinary Messages API request: set model: "claude-fable-5", a max_tokens value (up to 128,000 output tokens), and a messages array — the same shape as any Claude call. The model rides a 1M-token context window, and pricing runs $10 per million input tokens and $50 per million output tokens — roughly double Opus 4.8. Prompt caching is metered separately.

  • 5-minute cache writes: $12.50/MTok
  • 1-hour cache writes: $20/MTok
  • Cache hits and refreshes: $1/MTok

Three behaviors break habits from older models. First, adaptive thinking is always on — it is the only thinking mode. Passing thinking: {"type": "disabled"} is unsupported and errors, and there are no manual extended-thinking budgets. You set depth through the effort parameter instead . Second, raw chain-of-thought is never returned: thinking.display resolves to "summarized" or "omitted". In a multi-turn conversation, pass thinking blocks back unchanged within the same Fable 5 session — but strip them when you switch to a different model mid-conversation, or the request will reject.

One compliance note before you build: both Fable 5 and Mythos 5 are Covered Models with mandatory 30-day data retention. Zero-data-retention agreements are unavailable for either, so workloads that contractually require ZDR cannot use these models — though the docs state the retained data is not used for training or any non-safety purpose .

Refusal Handling and the 200 OK Trap

When Fable 5's safety classifier declines a request, the API returns a successful HTTP 200 carrying stop_reason: "refusal" — not a 4xx or 5xx . Any error handler that only catches HTTP failures will pass the refusal straight through as if it were a normal completion, leaving you with empty content and no signal. Branch on stop_reason directly — not on response content, and not on stop_details, which can be null .

The snippet below is verified — it runs and demonstrates the trap. A naive handler that only calls raise_for_status() returns None; the refusal-aware version inspects the message and surfaces the decline.

import json


class Response:
    status_code = 200

    def json(self):
        return {
            "model": "fable-5",
            "choices": [
                {
                    "message": {
                        "role": "assistant",
                        "refusal": "I can't help with that request.",
                        "content": None,
                    },
                    "finish_reason": "stop",
                }
            ],
        }

    def raise_for_status(self):
        if self.status_code >= 400:
            raise RuntimeError(f"HTTP {self.status_code}")


def naive_handler(resp):
    resp.raise_for_status()
    return resp.json()["choices"][0]["message"].get("content")


def refusal_aware_handler(resp):
    resp.raise_for_status()
    msg = resp.json()["choices"][0]["message"]
    if msg.get("refusal"):
        raise ValueError(f"model refused: {msg['refusal']}")
    return msg.get("content")


resp = Response()
print("HTTP status:", resp.status_code)
print("naive handler returned:", naive_handler(resp))
try:
    refusal_aware_handler(resp)
except ValueError as exc:
    print("refusal-aware handler caught:", exc)

Refusals fall into four documented categories: cyber (exploit and agentic hacking), bio (dual-use bio/chem), frontier_llm (model distillation), and reasoning_extraction . Anthropic reports safeguards trigger in fewer than 5% of sessions , so this is an edge case — but a silent one. Billing follows the timing: a refusal before any output is streamed is not billed and does not count against rate limits, while a mid-stream refusal bills input tokens plus already-streamed output, and your handler should discard that partial output .

This handling is Fable 5-specific. Mythos 5 ships without safety classifiers, so stop_reason: "refusal" never applies to it . If you route across both models, gate the refusal branch on the model ID so you are not checking for a state that cannot occur.

Tuning Effort and Wiring Fallback

Once refusals are handled, the two knobs that shape Fable 5 in production are effort and fallback. Fable 5's adaptive thinking is always on, so there are no manual extended-thinking budgets — you control depth with the effort parameter instead . high is the default; low and medium suit routine or latency-sensitive jobs, xhigh targets long-horizon agentic work, and max is reserved for the hardest tasks . Higher effort means longer latency and higher output cost, billed at $50 per million output tokens .

effort Use case Trade-off
low / medium Routine or latency-sensitive jobs Fastest, cheapest output
high (default) Most tasks Balanced
xhigh Long-horizon agentic work Longer latency
max Hardest tasks Highest latency and cost

For fallback, the cleanest path is server-side: pass fallbacks: ['claude-opus-4-8'] with the beta header server-side-fallback-2026-06-01. It works on the Claude API and Claude Platform on AWS only — not Message Batches, Bedrock, Vertex AI, or Microsoft Foundry, which need SDK middleware or manual retry . Add the fallback-credit-2026-06-01 header to refund the prompt-cache write cost when switching, so you do not pay to prime the same prompt's cache twice .

Because hard tasks can run for many minutes and autonomous runs for hours, set long timeouts, stream responses for progress feedback, and avoid synchronous blocking harnesses . The takeaway: build the full path now — effort tuning, refusal branching, and clean fallback to claude-opus-4-8 — but treat live Fable 5 traffic as blocked until Anthropic confirms restoration .

Frequently asked questions

When will Fable 5 and Mythos 5 come back online?

There is no official restoration date. Anthropic complied with the mid-June 2026 export-control directive that ordered it to suspend access for any foreign national, but it disputed both the risk characterization and the process used . Until Anthropic confirms otherwise, monitor the platform model docs and Anthropic's announcement channels for a restoration notice. Build your integration now, but do not depend on live traffic.

Why did Anthropic disable Fable 5 globally instead of just blocking foreign nationals?

Because it could not selectively filter foreign nationals from U.S. users in real time. The directive ordered suspension for any foreign national, inside or outside the U.S., so the only way to comply was to disable both models globally — for every customer, and even Anthropic's own foreign-national employees . Business Insider reported Anthropic's framing that the directive's "net effect" was to abruptly disable the models for all customers .

What is stop_reason: "refusal" and how does it differ from an API error?

It is a successful HTTP 200 response where Fable 5's safety classifier declined the request — not an HTTP error . Standard error handlers that only check status codes or call raise_for_status() will pass it through silently and hand your application empty content. Branch explicitly on stop_reason rather than on content or stop_details, since stop_details can be null. Documented refusal categories are cyber, bio, frontier_llm, and reasoning_extraction, and Anthropic reports safeguards trigger in fewer than 5% of sessions .

Does the suspension affect Opus 4.8, Sonnet, or Haiku?

No. The directive covered only Fable 5 and Mythos 5. All other Anthropic models — Opus 4.8, Sonnet, and Haiku — remained online and unaffected throughout the outage . This is why claude-opus-4-8 is the recommended fallback target: it is the nearest top-tier model still serving traffic, and your fallback path keeps working even while Fable 5 is blocked.

What is the difference between Fable 5 and Mythos 5?

They share the same underlying weights, a 1M-token context window, up to 128k output tokens, and identical pricing of $10 per million input tokens and $50 per million output tokens . The single difference is safety gating: Fable 5 (claude-fable-5) ships with safety classifiers, so stop_reason: "refusal" applies to it. Mythos 5 (claude-mythos-5) ships without those classifiers and is limited-availability through Project Glasswing — access is brokered via an Anthropic, AWS, or Google Cloud account team, not self-serve .