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