MCPcopy
hub / github.com/codeaashu/claude-code / getEffortSuffix

Function getEffortSuffix

src/utils/effort.ts:188–196  ·  view source on GitHub ↗
(
  model: string,
  effortValue: EffortValue | undefined,
)

Source from the content-addressed store, hash-verified

186 * the API actually receives (including max→high clamp for non-Opus models).
187 */
188export function getEffortSuffix(
189 model: string,
190 effortValue: EffortValue | undefined,
191): string {
192 if (effortValue === undefined) return ''
193 const resolved = resolveAppliedEffort(model, effortValue)
194 if (resolved === undefined) return ''
195 return ` with ${convertEffortValueToLevel(resolved)} effort`
196}
197
198export function isValidNumericEffort(value: number): boolean {
199 return Number.isInteger(value)

Callers 3

SpinnerWithVerbInnerFunction · 0.85
LogoV2Function · 0.85
CondensedLogoFunction · 0.85

Calls 2

resolveAppliedEffortFunction · 0.85

Tested by

no test coverage detected