翻篇收录说明
翻篇网页快照

Moderation replaces safety_mode on search - Keenable

https://docs.keenable.ai/changelog/2026-11-moderation

最近抓取:2026-12-03 05:57:20(北京时间)

最近内容变化:2026-12-03 05:57:20(北京时间)

这是最近一次有效抓取的文本快照,不含网页脚本、图片和动态交互内容。实际网页可能已更新。

访问原网页

页面简介

Released 23 November 2026: send moderation moderate or strict to remove unsafe results. safety_mode is deprecated and stops working on 1 March 2027.

正文摘录

Released 23 November 2026. Search takes moderation to remove unsafe results before they reach your agent. It filters exactly as safety_mode did, which it replaces. safety_mode keeps working until 1 March 2027, and every request that sends it now gets a warning. If your code sends safety_mode, switch to moderation before 1 March 2027. From that day, any request that sends safety_mode fails with 400. What changed BeforeFrom 23 NovemberWhat to do"safety_mode": "moderate""moderation": "moderate"Rename the parameter."safety_mode": "strict""moderation": "strict"Rename the parameter."safety_mode": "off"Leave moderation outRemove the parameter. "moderation": "off" returns 400.No moderationNo moderationNothing. moderation takes moderate or strict. Leave it out, or send null or an empty string, for no moderation. It works where safety_mode worked: with mode set to pro (the default) or realtime, on a text query, and not on Time Machine search. Results that a safety model judges unsafe are removed and not replaced, so a query can return fewer than max_results results, or none. Moderation and safety_mode now also work with disable_cards. Search with moderation This request searches without an API key and removes results judged unsafe at the moderate level: curl -X POST https://api.keenable.ai/v1/search/public \ -H "Content-Type: application/json" \ -H "X-Keenable-Title: My App" \ -d '{ "query": "best beginner snowboard tricks", "moderation": "moderate", "max_results": 5 }' You get the usual search response, with up to 5 results. With an API key, send the same body to https://api.keenable.ai/v1/search with an X-API-Key header instead of X-Keenable-Title. The MCP server’s search_web_pages tool takes moderation too. See MCP server. The SDKs (moderation in Python, TypeScript and Rust, Moderation in Go) and the CLI (--moderation) take it from their next release. Warnings for safety_mode A request that sends safety_mode, with any value, still runs as before. The 200 response adds a warnings list to the body: { "warnings": [ { "code": "deprecated_parameter", "path": "/safety_mode", "message": "safety_mode is deprecated and stops working on 2027-03-01. Use moderation." } ] } It also adds two headers: Deprecation: @1795392000, the date the parameter was deprecated as an RFC 9745 date, and Sunset: Mon, 01 Mar 2027 00:00:00 GMT, the date it stops working. To find the requests you still have to change, log warnings or these headers. See Deprecation warnings. Time Machine search doesn’t take moderation, and safety_mode there is unchanged until 1 March 2027. See Time Machine search. Requests that fail A request with moderation fails with 400, code invalid_parameter and param set to moderation, in these cases: RequestmessageFixA non-empty moderation and safety_mode together"moderation": replaces "safety_mode"; send only "moderation"Remove safety_mode. An empty moderation counts as not sent.A value other than moderate or strict, such as off"moderation": is not a supported moderation level; use "moderate" or "strict", or leave it out for no moderationSend moderate or strict, or leave moderation out.mode set to another mode"moderation": is only supported in "pro" and "realtime" modesSet mode to pro or realtime.A query that is a URL, with no exclude_domains"moderation": is not supported when the query is a URL: the page is fetched as is, not filteredSend a text query, or read the page with Fetch. A value that differs from a supported one only in case or spaces, such as "Strict", gets a message that asks did you mean "strict"?. If you send safesearch, safe_search, safe or safety instead, the API returns unknown_parameter, and did_you_mean maps the name to moderation. See 400 Invalid request parameters. From 1 March 2027 safety_mode is removed. Any request that sends it, whatever its value and on any search endpoint, including Time Machine search and the MCP server, fails with 400, code invalid_parameter, param set to safety_mode, and "safety_mode": was removed on 2027-03-01; send "moderation" instead ("moderate" or "strict", or leave it out for no moderation). Send moderation instead, or leave both out for no moderation. Related Search API reference: the moderation field and every other request field. Versioning and deprecation: how long a deprecated parameter keeps working. Changelog: every change, newest first.