dazzling-car-78136
07/13/2025, 11:25 AMprehistoric-airplane-85682
07/16/2025, 3:56 PMjs
const isMainFlow = event.state.context.currentFlow.includes('main') //<--- The flow location
const isOrchestrator = event.state.context.currentNode.includes('1e9baaf49d') //<-- the node id
console.log('Current Model: ', context.model) //<-- console log the id name of the LLM to know what to use in the next block
if (isMainFlow && isOrchestrator) { //<-- if flow equals the flow your AN is in AND the NodeID matches the AN you want to change the LLM for
context.model = 'openai__gpt-4.1-2025-04-14' <-- change the LLM model to the LLM id you want (line 3)
console.log('New Model: ', context.model) //<-- console log the result to see if it applied
}dazzling-car-78136
07/19/2025, 11:25 AMdazzling-car-78136
07/19/2025, 12:15 PMprehistoric-airplane-85682
07/21/2025, 2:19 PMdazzling-car-78136
07/28/2025, 6:49 PMdazzling-car-78136
07/28/2025, 6:49 PMbrave-fish-89032
08/22/2025, 8:06 AMbrave-fish-89032
08/22/2025, 8:06 AM