Download apps/server/tests/unit/lib/thinking-level-normalization.test.ts from lekmikdok/hyp: direct link, hf CLI and curl.
- Browser
- Download file 823 Bytes
-
https://huggingface.co/spaces/lekmikdok/hyp/resolve/main/apps/server/tests/unit/lib/thinking-level-normalization.test.ts
- Command line
-
hf download hf://spaces/lekmikdok/hyp/apps/server/tests/unit/lib/thinking-level-normalization.test.ts
-
curl -L -o thinking-level-normalization.test.ts https://huggingface.co/spaces/lekmikdok/hyp/resolve/main/apps/server/tests/unit/lib/thinking-level-normalization.test.ts
823 Bytes
| import { describe, it, expect } from 'vitest'; | |
| import { normalizeThinkingLevelForModel } from '@automaker/types'; | |
| describe('normalizeThinkingLevelForModel', () => { | |
| it('preserves explicitly selected none for Opus models', () => { | |
| expect(normalizeThinkingLevelForModel('claude-opus', 'none')).toBe('none'); | |
| }); | |
| it('falls back to none when Opus receives an unsupported manual thinking level', () => { | |
| expect(normalizeThinkingLevelForModel('claude-opus', 'medium')).toBe('none'); | |
| }); | |
| it('keeps adaptive for Opus when adaptive is selected', () => { | |
| expect(normalizeThinkingLevelForModel('claude-opus', 'adaptive')).toBe('adaptive'); | |
| }); | |
| it('preserves supported manual levels for non-Opus models', () => { | |
| expect(normalizeThinkingLevelForModel('claude-sonnet', 'high')).toBe('high'); | |
| }); | |
| }); | |