| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /:user_id/:repository/commit/:name(/*path) |
| route-controller | commit |
| route-action | show |
| fetch-nonce | v2:8824c0cb-2a5b-f125-1914-b303f6421eca |
| current-catalog-service-hash | f3abb0cc802f3d7b95fc8762b94bdcb13bf39634c40c357301c4aa1d67a256fb |
| request-id | E890:5C598:333E21:460C1A:6AED7B23 |
| html-safe-nonce | 9e918934cc8d886bd57d77ef5a3af6946fb51ac116367c40fc5c3cfdf2842264 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFODkwOjVDNTk4OjMzM0UyMTo0NjBDMUE6NkFFRDdCMjMiLCJ2aXNpdG9yX2lkIjoiNTk1NjExOTUzMjQ0MTI3MTA3NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 4590db29fbe01f28017e32e4bf2aa6ea6cad318c9b693f54626826fde3ef2bbd |
| hovercard-subject-tag | repository:644461337 |
| github-keyboard-shortcuts | repository,commits,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///commit/show |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/vercel/ai/commit/5ec21a6 |
| twitter:image | https://opengraph.githubassets.com/25bdc363290d90aecb73264e8913c26e387cc80501f895177d7efc18b41206c5/vercel/ai/commit/5ec21a6946e13159d3c353c3fcd170ca8564d378 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/25bdc363290d90aecb73264e8913c26e387cc80501f895177d7efc18b41206c5/vercel/ai/commit/5ec21a6946e13159d3c353c3fcd170ca8564d378 |
| og:image:alt | ## Background
Right now, the only Batch request type is `text`. Both AI SDK Core and
provider packages follow that TypeScript type, and assume `type` is
*always* `text`.
When we extend that `type... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:updated_time | 1788992251 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 56fb42677ae87ed3e64410323d67980aa65d0485568a7858f874e7edfc6d1c11 |
| turbo-cache-control | no-cache |
| go-import | github.com/vercel/ai git https://github.com/vercel/ai.git |
| octolytics-dimension-user_id | 14985020 |
| octolytics-dimension-user_login | vercel |
| octolytics-dimension-repository_id | 644461337 |
| octolytics-dimension-repository_nwo | vercel/ai |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 644461337 |
| octolytics-dimension-repository_network_root_nwo | vercel/ai |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9c9a37e2423ed382cf39f70b5aa4b4858b40a3b0 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | commits |
| Skip to content | https://redirect.github.com/vercel/ai/commit/5ec21a6#start-of-content |
| https://redirect.github.com/ |
| Sign in | https://redirect.github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fvercel%2Fai%2Fcommit%2F5ec21a6 |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://redirect.github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fvercel%2Fai%2Fcommit%2F5ec21a6 |
| Sign up | https://redirect.github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fcommit%2Fshow&source=header-repo&source_repo=vercel%2Fai |
| Reload | https://redirect.github.com/vercel/ai/commit/5ec21a6 |
| Reload | https://redirect.github.com/vercel/ai/commit/5ec21a6 |
| Reload | https://redirect.github.com/vercel/ai/commit/5ec21a6 |
| vercel | https://redirect.github.com/vercel |
| ai | https://redirect.github.com/vercel/ai |
| Code | https://redirect.github.com/vercel/ai |
| Issues476 (476) | https://redirect.github.com/vercel/ai/issues |
| Pull requests1k (1k) | https://redirect.github.com/vercel/ai/pulls |
| Actions | https://redirect.github.com/vercel/ai/actions |
| Projects | https://redirect.github.com/vercel/ai/projects |
| Security and quality6 (6) | https://redirect.github.com/vercel/ai/security |
| Insights | https://redirect.github.com/vercel/ai/pulse |
| https://redirect.github.com/vercel/ai |
| Browse files | https://redirect.github.com/vercel/ai/tree/5ec21a6946e13159d3c353c3fcd170ca8564d378 |
| https://redirect.github.com/vercel/ai/tree/5ec21a6946e13159d3c353c3fcd170ca8564d378 |
| https://redirect.github.com/n1ckoates |
| n1ckoates | https://redirect.github.com/vercel/ai/commits?author=n1ckoates |
| #20562 | https://github.com/vercel/ai/pull/20562 |
| 007cceb | https://redirect.github.com/vercel/ai/commit/007cceb7b9760a8cb97aebc20eacd41ecd6cb4d7 |
| batch-request-type-validation.md | https://redirect.github.com/vercel/ai/commit/5ec21a6#diff-fb3cd6c92c07f301174c4bbafbfdda4b474cde5e5bdf247c691819295878a1d8 |
| check-bundle-size.ts | https://redirect.github.com/vercel/ai/commit/5ec21a6#diff-63efb1294dd0cf159dff6ef281dd2b5fb0702e1c8edcd6b2c520331efc288d60 |
| batch.test.ts | https://redirect.github.com/vercel/ai/commit/5ec21a6#diff-f0d9d1b0abb13403c9b451179e686c717f3ab6268bb05eb4ea7b0e5ddd100c31 |
| batch.ts | https://redirect.github.com/vercel/ai/commit/5ec21a6#diff-dc6a9e15fe12de6437b2d6b4ca0ec9cd280d8b47e9e6cf7cb0ddf172da51fd44 |
| anthropic-batch.test.ts | https://redirect.github.com/vercel/ai/commit/5ec21a6#diff-c103ff438cddf1019f9d90d87f07d889613ad8e133a28517785aa72ccbbbd6e7 |
| anthropic-batch.ts | https://redirect.github.com/vercel/ai/commit/5ec21a6#diff-bd75619f2578f36f0ceea1ea17e4217983ea5daef7659526c89af65756288162 |
| gateway-batch.test.ts | https://redirect.github.com/vercel/ai/commit/5ec21a6#diff-ce60d65dd7f0406cb1bf13047a631ed6cf102a55a655bcb28b4326d6ad499a46 |
| gateway-batch.ts | https://redirect.github.com/vercel/ai/commit/5ec21a6#diff-13ac98f2d030bdda999da0716948660745cb29a2eb1d20e04b0a363cced6b48e |
| google-batch.test.ts | https://redirect.github.com/vercel/ai/commit/5ec21a6#diff-61221b9fcd78d2b3085f7be135dede9ad61f632b5ea5a8a1267fe4b8c6906582 |
| google-batch.ts | https://redirect.github.com/vercel/ai/commit/5ec21a6#diff-e528ef752b3f3503b808e483dd159759a75a8f3b3d3e260b6e3f58edb36dd7a1 |
| openai-batch.test.ts | https://redirect.github.com/vercel/ai/commit/5ec21a6#diff-1f681ad12d774a2789f9a7e622fccbdab94451b00b5ee86843230bade211b258 |
| openai-batch.ts | https://redirect.github.com/vercel/ai/commit/5ec21a6#diff-ce349ff28310fa928221329e5b46c5d383d2e5af6e382361b901a5236a843b1a |
| xai-batch.test.ts | https://redirect.github.com/vercel/ai/commit/5ec21a6#diff-22bddbe7ed51ee0e35fa1a8c0f6901d7407de1a105444b229b6a84368c732733 |
| xai-batch.ts | https://redirect.github.com/vercel/ai/commit/5ec21a6#diff-390e0b755b9b84caf58f7fa40a41b7da10cd8e73bb9f6d3e80aec61aad0dbc01 |
| .changeset/batch-request-type-validation.md | https://redirect.github.com/vercel/ai/commit/5ec21a6#diff-fb3cd6c92c07f301174c4bbafbfdda4b474cde5e5bdf247c691819295878a1d8 |
| packages/ai/scripts/check-bundle-size.ts | https://redirect.github.com/vercel/ai/commit/5ec21a6#diff-63efb1294dd0cf159dff6ef281dd2b5fb0702e1c8edcd6b2c520331efc288d60 |
| packages/ai/src/batch/batch.test.ts | https://redirect.github.com/vercel/ai/commit/5ec21a6#diff-f0d9d1b0abb13403c9b451179e686c717f3ab6268bb05eb4ea7b0e5ddd100c31 |
| packages/ai/src/batch/batch.ts | https://redirect.github.com/vercel/ai/commit/5ec21a6#diff-dc6a9e15fe12de6437b2d6b4ca0ec9cd280d8b47e9e6cf7cb0ddf172da51fd44 |
| packages/anthropic/src/anthropic-batch.test.ts | https://redirect.github.com/vercel/ai/commit/5ec21a6#diff-c103ff438cddf1019f9d90d87f07d889613ad8e133a28517785aa72ccbbbd6e7 |
| packages/anthropic/src/anthropic-batch.ts | https://redirect.github.com/vercel/ai/commit/5ec21a6#diff-bd75619f2578f36f0ceea1ea17e4217983ea5daef7659526c89af65756288162 |
| packages/gateway/src/gateway-batch.test.ts | https://redirect.github.com/vercel/ai/commit/5ec21a6#diff-ce60d65dd7f0406cb1bf13047a631ed6cf102a55a655bcb28b4326d6ad499a46 |
| packages/gateway/src/gateway-batch.ts | https://redirect.github.com/vercel/ai/commit/5ec21a6#diff-13ac98f2d030bdda999da0716948660745cb29a2eb1d20e04b0a363cced6b48e |
| packages/google/src/google-batch.test.ts | https://redirect.github.com/vercel/ai/commit/5ec21a6#diff-61221b9fcd78d2b3085f7be135dede9ad61f632b5ea5a8a1267fe4b8c6906582 |
| packages/google/src/google-batch.ts | https://redirect.github.com/vercel/ai/commit/5ec21a6#diff-e528ef752b3f3503b808e483dd159759a75a8f3b3d3e260b6e3f58edb36dd7a1 |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |