| 1 | export const THINKING_PARAMETER_MODES = ['auto', 'omit'] as const |
| 2 | |
| 3 | export type ThinkingParameterMode = (typeof THINKING_PARAMETER_MODES)[number] |
| 4 | |
| 5 | export const DEFAULT_THINKING_PARAMETER_MODE: ThinkingParameterMode = 'auto' |
| 6 | |
| 7 | export const normalizeThinkingParameterMode = (value: unknown): ThinkingParameterMode => { |
| 8 | return THINKING_PARAMETER_MODES.includes(value as ThinkingParameterMode) |
| 9 | ? (value as ThinkingParameterMode) |
| 10 | : DEFAULT_THINKING_PARAMETER_MODE |
| 11 | } |
| 12 |