MCPcopy Create free account
hub / github.com/freecodexyz/free-code / getRainbowColor

Function getRainbowColor

src/utils/thinking.ts:80–86  ·  view source on GitHub ↗
(
  charIndex: number,
  shimmer: boolean = false,
)

Source from the content-addressed store, hash-verified

78]
79
80export function getRainbowColor(
81 charIndex: number,
82 shimmer: boolean = false,
83): keyof Theme {
84 const colors = shimmer ? RAINBOW_SHIMMER_COLORS : RAINBOW_COLORS
85 return colors[charIndex % colors.length]!
86}
87
88// TODO(inigo): add support for probing unknown models via API error detection
89// Provider-aware thinking support detection (aligns with modelSupportsISP in betas.ts)

Callers 4

HighlightedThinkingTextFunction · 0.85
PromptInputFunction · 0.85
RainbowTextFunction · 0.85
_tempFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected