Expand description
Request parameter validation and error detection.
Modules§
- exposed
- Exposed namespace of the module.
- orphan
- Orphan namespace of the module.
- own
- Own namespace of the module.
- prelude
- Prelude to use essentials:
use my_module ::prelude :: *.
Functions§
- validate_
frequency_ penalty - Validates that
frequency_penaltyis within valid range [-2.0, 2.0]. - validate_
max_ tokens - Validates that
max_tokensis positive. - validate_
messages - Validates that messages array is non-empty with valid content.
- validate_
model - Validates that the model name is supported.
- validate_
presence_ penalty - Validates that
presence_penaltyis within valid range [-2.0, 2.0]. - validate_
request - Validates a chat completion request.
- validate_
temperature - Validates that temperature is within valid range [0.0, 2.0].
- validate_
tools - Validates tool definitions (function calling schemas).
- validate_
top_ p - Validates that
top_pis within valid range [0.0, 1.0].