(name string, value *decimal.Decimal)
| 7447 | } |
| 7448 | |
| 7449 | func validateNonNegativeDecimalField(name string, value *decimal.Decimal) error { |
| 7450 | if value == nil { |
| 7451 | return nil |
| 7452 | } |
| 7453 | if value.IsNegative() { |
| 7454 | return xerrors.Errorf("%s must be greater than or equal to zero", name) |
| 7455 | } |
| 7456 | return nil |
| 7457 | } |
| 7458 | |
| 7459 | func unmarshalChatModelCallConfig( |
| 7460 | raw json.RawMessage, |
no test coverage detected