Can before_model_resolve fire after message:transcribed for the same message β enabling same-turn model switching based on message content?
I want to auto-switch to a more capable model (gpt-5.4) when a WhatsApp message contains travel-related content, without a one-message lag. My current thinking:
message:transcribed hook detects travel keywords, writes a flag file
before_model_resolve hook reads the flag, overrides model to gpt-5.4
Does the message pipeline sequence allow this β i.e. does before_model_resolve run after transcription for the same message? Or is there a better pattern for content-aware model switching?
Running OC 4.15, WhatsApp channel, OpenAI provider.