Shared Utilities for aiSSEMBLE Open Inference Protocol
Project description
aiSSEMBLE™ Open Inference Protocol Shared Utils
Contains common functionality shared across multiple interfaces
Content Type Precedence
When constructing an InferenceResponse, the build_inference_response utility determines the content_type for each output using the following precedence chain:
- Handler Output Content Type: If the handler's output specifies a
content_type, it takes highest precedence and is used directly. - Per-Output Content Type: If
request.outputsis set, thecontent_typespecified for each output is used. - Request-Level Content Type: If no per-output type is set, falls back to the request-level
content_type(fromrequest.parameters.content_type). - Default Fallback: If none of the above are set, defaults to
Noneas the content type.
This ensures that the most specific content type is always used, with clear and predictable fallback behavior.
Examples
For working examples and more details on shared features, configuration options, and usage, refer to the Examples documentation.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters