Skip to content

fix(gateway): include caching in GatewayProviderOptions#14663

Closed
MukundaKatta wants to merge 1 commit into
vercel:mainfrom
MukundaKatta:codex/gateway-caching-type
Closed

fix(gateway): include caching in GatewayProviderOptions#14663
MukundaKatta wants to merge 1 commit into
vercel:mainfrom
MukundaKatta:codex/gateway-caching-type

Conversation

@MukundaKatta

Copy link
Copy Markdown

Summary

  • add the missing caching field to the gateway provider options schema
  • cover the schema change with a gateway-language-model regression test
  • align the exported TypeScript type with the documented automatic caching configuration

Closes #14595

Verification

  • pnpm vitest run packages/gateway/src/gateway-language-model.test.ts -t "allow caching in provider options" (not runnable here because vitest is not installed in the current workspace dependencies and this environment uses unsupported Node v25)

@tigent tigent Bot added ai/provider related to a provider package. Must be assigned together with at least one `provider/*` label bug Something isn't working as documented provider/gateway Issues related to the @ai-sdk/gateway provider labels Apr 21, 2026
@MukundaKatta

Copy link
Copy Markdown
Author

#14664 addresses the same issue with a more complete diff. Closing this earlier version to keep review signal clean.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai/provider related to a provider package. Must be assigned together with at least one `provider/*` label bug Something isn't working as documented provider/gateway Issues related to the @ai-sdk/gateway provider

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GatewayProviderOptions type missing 'caching' property (docs mismatch)

1 participant