microscopic-stone-6467
08/13/2025, 2:49 PMprehistoric-airplane-85682
08/13/2025, 8:03 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
console.log('New Model: ', context.model) // console log the result to see if it applied
}
Hope thsi helsp!microscopic-stone-6467
08/18/2025, 5:56 AMprehistoric-airplane-85682
08/18/2025, 1:31 PM