I switched one of my AI agents projects from GPT-4o to the new Claude 3.5 Sonnet model. The agents now run with a cost that’s roughly 85% cheaper and the final results arrive about 15% faster.
To upgrade my AI agents project, all I had to do was write the code below. This is one of the great advantages of writing apps where models are interchangeable. Every few months, we get better, faster, and cheaper upgrades. Moreover, developers can benefit from new AI intelligence with minimal code changes.