Skip to main content

Module request_hooks

Module request_hooks 

Source
Expand description

Request preflight hooks.

These hooks run before we convert/forward OpenAI-compatible requests into Bamboo’s internal message format. They allow us to inspect and rewrite requests (e.g. image fallback handling) in a single, easy-to-extend place.

Enums§

HookError

Functions§

apply_openai_preflight_hooks
apply_openai_preflight_hooks_to_messages