oficina / equipo Public

Clone
git clone https://amadan.net/oficina/equipo

Plain git — no account needed to clone.

Download

Download this file

1package codex
2
3import "encoding/json"
4
5// These notices come from disabled legacy flags in the pinned coordinator policy.
6// Unknown notices and requests still fail closed.
7func pinnedDeprecation(v envelope) bool {
8 if len(v.ID) != 0 {
9 return false
10 }
11 var p map[string]json.RawMessage
12 var summary, details string
13 if json.Unmarshal(v.Params, &p) != nil || len(p) != 2 || json.Unmarshal(p["summary"], &summary) != nil || json.Unmarshal(p["details"], &details) != nil {
14 return false
15 }
16 switch summary {
17 case "`[features].web_search_cached` is deprecated because web search is enabled by default.":
18 return details == "Set `web_search` to `\"live\"`, `\"indexed\"`, `\"cached\"`, or `\"disabled\"` at the top level (or under a profile) in config.toml if you want to override it."
19 case "`[features].web_search_request` is deprecated because web search is enabled by default.":
20 return details == "Set `web_search` to `\"live\"`, `\"indexed\"`, `\"cached\"`, or `\"disabled\"` at the top level (or under a profile) in config.toml if you want to override it."
21 case "`[features].imagegenext` is deprecated. Use `[features].image_generation` instead.":
22 return details == "Enable it with `--enable image_generation` or `[features].image_generation` in config.toml. See https://developers.openai.com/codex/config-basic#feature-flags for details."
23 case "`[features].memory_tool` is deprecated. Use `[features].memories` instead.":
24 return details == "Enable it with `--enable memories` or `[features].memories` in config.toml. See https://developers.openai.com/codex/config-basic#feature-flags for details."
25 case "`[features].web_search` is deprecated because web search is enabled by default.":
26 return details == "Set `web_search` to `\"live\"`, `\"indexed\"`, `\"cached\"`, or `\"disabled\"` at the top level (or under a profile) in config.toml if you want to override it."
27 }
28 return false
29}
30