how come openrouter the most crucial provider is not supported in AI sdk v5? am i missing something?
I believe the beta version is currently compatible
hey has this been resolved? thanks
Looks like it’s out of beta, so it should work now. But please let me know if you’re still having trouble with it!
I can’t get streamText() working in an Expo SDK 53 iOS app with OpenRouter and @openrouter/ai-sdk-provider. generateText() works fine, but it’s too slow. Any suggestions?
@sunney @amyegan @arkmaster123 @jadams777 hi sorry for bothering,does anyone know if ai sdk support anthropic 1 hour prompt caching via openrouter , i tried what the docs saimessages: [
{
role: 'system',
content:
'You are a podcast summary assistant. You are detail-oriented and critical about the content.',
},
{
role: 'user',
content: \[
{
type: 'text',
text: 'Given the text body below:',
},
{
type: 'text',
text: \`<LARGE BODY OF TEXT>\`,
providerOptions: {
openrouter: {
cacheControl: { type: 'ephemeral' ,ttl:"1h"},
},
},
},
{
type: 'text',
text: 'List the speakers?',
},
\],
},
],
it works, but the cache write cost 1.25×input not 2×input i thinks this mean that this the 5min cache not the 1hour cache
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
