MCPcopy Index your code
hub / github.com/anomalyco/opencode / anthropicAdaptiveEfforts

Function anthropicAdaptiveEfforts

packages/opencode/src/provider/transform.ts:616–628  ·  view source on GitHub ↗
(apiId: string)

Source from the content-addressed store, hash-verified

614}
615
616function anthropicAdaptiveEfforts(apiId: string): string[] | null {
617 if (anthropicOpus47OrLater(apiId) || anthropicSonnet5OrLater(apiId) || apiId.includes("fable-5")) {
618 return ["low", "medium", "high", "xhigh", "max"]
619 }
620 if (
621 ["opus-4-6", "opus-4.6", "4-6-opus", "4.6-opus", "sonnet-4-6", "sonnet-4.6", "4-6-sonnet", "4.6-sonnet"].some((v) =>
622 apiId.includes(v),
623 )
624 ) {
625 return ["low", "medium", "high", "max"]
626 }
627 return null
628}
629
630function anthropicOmitsThinking(apiId: string) {
631 return anthropicOpus47OrLater(apiId) || anthropicSonnet5OrLater(apiId) || apiId.includes("fable-5")

Callers 1

variantsFunction · 0.85

Calls 2

anthropicOpus47OrLaterFunction · 0.85
anthropicSonnet5OrLaterFunction · 0.85

Tested by

no test coverage detected