| 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:7cfb08fb-dc02-20ac-bddd-0c5f4518d50d |
| current-catalog-service-hash | f3abb0cc802f3d7b95fc8762b94bdcb13bf39634c40c357301c4aa1d67a256fb |
| request-id | C292:3865E3:151BD11:1BA6809:6AED77BC |
| html-safe-nonce | ba50d4bbc1f09e49a9762d891452feaf3a2c6cdcafaace3ecabe731fe31056a6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMjkyOjM4NjVFMzoxNTFCRDExOjFCQTY4MDk6NkFFRDc3QkMiLCJ2aXNpdG9yX2lkIjoiMzAyMTU0OTUwMjE1MDMwOTgyMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | f8ab89669d621f79fe724abc0c94263d5504cc32b9ff6d5b9c8a7b6de8538d42 |
| 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/59116e6 |
| twitter:image | https://opengraph.githubassets.com/7ba92e14fda988d9c23715fd2bdc0c35b667a7afd07cba07cd2840c384bc75e8/vercel/ai/commit/59116e6952784647bcf50f493319b52fc9463417 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7ba92e14fda988d9c23715fd2bdc0c35b667a7afd07cba07cd2840c384bc75e8/vercel/ai/commit/59116e6952784647bcf50f493319b52fc9463417 |
| og:image:alt | …tool calling (#21989)
## Background
Groq and some Gemini configurations reject requests that combine tools
with structured output.
## Summary
- Use an internal JSON tool when the provider cann... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:updated_time | 1791218807 |
| 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/59116e6#start-of-content |
| https://redirect.github.com/ |
| Sign in | https://redirect.github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fvercel%2Fai%2Fcommit%2F59116e6 |
| 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%2F59116e6 |
| 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/59116e6 |
| Reload | https://redirect.github.com/vercel/ai/commit/59116e6 |
| Reload | https://redirect.github.com/vercel/ai/commit/59116e6 |
| vercel | https://redirect.github.com/vercel |
| ai | https://redirect.github.com/vercel/ai |
| Code | https://redirect.github.com/vercel/ai |
| Issues475 (475) | 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/59116e6952784647bcf50f493319b52fc9463417 |
| https://redirect.github.com/vercel/ai/tree/59116e6952784647bcf50f493319b52fc9463417 |
| https://redirect.github.com/n1ckoates |
| n1ckoates | https://redirect.github.com/vercel/ai/commits?author=n1ckoates |
| #21989 | https://github.com/vercel/ai/pull/21989 |
| #10023 | https://github.com/vercel/ai/issues/10023 |
| 575383e | https://redirect.github.com/vercel/ai/commit/575383e93772d32bc63aa5d2dfd27d891cad9162 |
| tender-tools-json.md | https://redirect.github.com/vercel/ai/commit/59116e6#diff-1b560aa4b4c8ddbf9f85adc4233e6793f3fe5c860d8d61e1db842374061a80f6 |
| output-with-tools.ts | https://redirect.github.com/vercel/ai/commit/59116e6#diff-8a6316ee885cfcd21cec0138f1a123d4fff71c6180c24cf794544a23d162ab88 |
| output-with-tools.ts | https://redirect.github.com/vercel/ai/commit/59116e6#diff-8a72fe4e02ffa417c7bbde8b4f8a886b110cfcea85eaabd5cbd1d6e51cc3b71b |
| google-language-model.ts | https://redirect.github.com/vercel/ai/commit/59116e6#diff-e7582d472ed599518a97e33fed780a7dca6ed3cc77062f5a4d038b9cf75f3204 |
| structured-output-with-tools.test.ts | https://redirect.github.com/vercel/ai/commit/59116e6#diff-c4d3952a9fe4257e46228429fb2f5f660e29221374e7c3d4d2ac65652c727573 |
| groq-chat-language-model.ts | https://redirect.github.com/vercel/ai/commit/59116e6#diff-cbc491e0c32006f245edbceece1a6079100b11b9f01d55f37fd64487263cca90 |
| structured-output-with-tools.test.ts | https://redirect.github.com/vercel/ai/commit/59116e6#diff-697badafeef4d0f8fee25655d56f1dacfa588e465bbe4bd5bc19b7864d00d7e3 |
| convert-json-response-tool-stream.test.ts | https://redirect.github.com/vercel/ai/commit/59116e6#diff-f0bcafa52923634fc330775ef8ba3de07d51e5816929740e5659c7c3a99b0316 |
| convert-json-response-tool-stream.ts | https://redirect.github.com/vercel/ai/commit/59116e6#diff-736440110e32963257e9d6604b225aafbfccd6e1af44ad7b2a924c5af51eed29 |
| index.ts | https://redirect.github.com/vercel/ai/commit/59116e6#diff-c69322fa01fd5203e67768b82c40918daa2bd68d313512939a8f26e96b2053ba |
| .changeset/tender-tools-json.md | https://redirect.github.com/vercel/ai/commit/59116e6#diff-1b560aa4b4c8ddbf9f85adc4233e6793f3fe5c860d8d61e1db842374061a80f6 |
| examples/ai-functions/src/generate-text/google/output-with-tools.ts | https://redirect.github.com/vercel/ai/commit/59116e6#diff-8a6316ee885cfcd21cec0138f1a123d4fff71c6180c24cf794544a23d162ab88 |
| examples/ai-functions/src/generate-text/groq/output-with-tools.ts | https://redirect.github.com/vercel/ai/commit/59116e6#diff-8a72fe4e02ffa417c7bbde8b4f8a886b110cfcea85eaabd5cbd1d6e51cc3b71b |
| packages/google/src/google-language-model.ts | https://redirect.github.com/vercel/ai/commit/59116e6#diff-e7582d472ed599518a97e33fed780a7dca6ed3cc77062f5a4d038b9cf75f3204 |
|
| 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 |