(status int)
| 653 | } |
| 654 | |
| 655 | func errTypeFor(status int) string { |
| 656 | if status >= 500 { |
| 657 | return "internal_error" |
| 658 | } |
| 659 | return "invalid_request_error" |
| 660 | } |
| 661 | |
| 662 | // validateSamplingParams range-checks the OpenAI sampling fields. Even when |
| 663 | // we don't yet plumb them all the way through to the model, validating up |
no outgoing calls