Generate Text
Make your first LLM call.
Let's try asking about something recent.
No luck...
Why don't we try Perplexity?
Awesome, that worked! While we're at it, let's try Google.
As you can see, changing providers with the AI SDK is as simple as changing two lines of code.
Oh - and we can even see what sources were used to generate the text: