(input: unknown)
| 161 | }; |
| 162 | type CommonBody = { |
| 163 | model: string; |
| 164 | stream?: boolean | undefined; |
| 165 | provider?: unknown; |
| 166 | providerOptions?: unknown; |
| 167 | tools?: unknown[] | undefined; |
| 168 | }; |
| 169 | |
| 170 | // Values the caller captured before the body was mutated (the gateway |
| 171 | // rewrites `model` and provider fields in place during routing). When |
| 172 | // provided they are used verbatim and the body's own values are ignored. |
| 173 | export type NormalizeOverrides = { |
| 174 | requestedModel: string; |
| 175 | providerHints: NormalizedClassifierInput['providerHints']; |
| 176 | }; |
| 177 | |
| 178 | export function normalizeClassifierInput( |
no test coverage detected