Library / Building Blocks & Utilities
Building Blocks & Utilities
Switch Between LLMs Automatically on Errors with OpenAI
When a chat message arrives, it tries one language model and automatically falls back to the next model in the list if an error occurs.
What it does
### Customer complaint - example I really *love* waiting two weeks just to get a keyboard that doesn’t even work. Great job. Any chance I could actually use the thing I paid for sometime this month?
The steps
- When chat message received
- Switch Model
- Set LLM index
- Increase LLM index
- No Operation, do nothing
- Check for expected error
- Loop finished without results
- Unexpected error
- Return result
- OpenAI 4o-mini
- OpenAI 4o
- OpenAI o1
- OpenAI Chat Model
- Validate response
15 steps in total.
Similar automations
Building Blocks & UtilitiesSwitch Between LLMs Automatically on Errors21 stepsContent Writing & GenerationGenerate llms.txt Files from Screaming Frog Data with OpenAI12 stepsContent Writing & GenerationGenerate llms.txt Files from Screaming Frog Crawls with OpenAI16 stepsContent Writing & GenerationGenerate llms.txt from Screaming Frog Crawls Using an OpenAI Classifier13 steps