Repository navigation
docs(go-sdk): document include=context_window on ListModels and ListProviderModels - #452
Merged
Merged
Conversation
…roviderModels ListModels and ListProviderModels now accept optional variadic include values (sdk.ListModelsParamsIncludeContextWindow, sdk.ListModelsParamsIncludePricing) forwarded as ?include=context_window,pricing. Model.ContextWindow is nil when not requested, populated when resolved, and explicit null when requested but unresolvable.
3 tasks
This was referenced Jul 21, 2026
edenreich
pushed a commit
that referenced
this pull request
Jul 21, 2026
… metadata fields (#454) Adds the include parameter (context_window, pricing) to listModels and documents the new context_window and pricing model metadata fields, matching the Go SDK docs pattern from #452. Co-authored-by: inference-gateway-maintainer[bot] <246577062+inference-gateway-maintainer[bot]@users.noreply.github.com>
inference-gateway-releaser Bot
added a commit
that referenced
this pull request
Jul 22, 2026
## [0.9.3](0.9.2...0.9.3) (2026-07-22) ### 🐛 Bug Fixes * **configuration:** update Z-AI API URL to match canonical schema ([#443](#443)) ([2ad9f95](2ad9f95)) ### 📚 Documentation * **api-reference:** document community context-window fallback ([#450](#450)) ([be74471](be74471)) * **api-reference:** document community pricing fallback ([#449](#449)) ([3504c8f](3504c8f)) * **api-reference:** document context_window resolution for GET /v1/models include param ([#445](#445)) ([ca01a1b](ca01a1b)) * **api-reference:** document include query parameter on GET /v1/models ([#442](#442)) ([566dd19](566dd19)) * **api-reference:** document include=pricing model pricing metadata on GET /v1/models ([#446](#446)) ([88f0573](88f0573)) * **api-reference:** document subscription field in pricing metadata ([#456](#456)) ([ae251c1](ae251c1)) * document llamacpp LLAMACPP_API_KEY bearer auth ([#437](#437)) ([c8cd256](c8cd256)) * **go-sdk:** document include=context_window on ListModels and ListProviderModels ([#452](#452)) ([ec3a520](ec3a520)) * **observability:** document tracing config env vars ([#459](#459)) ([60a2cc2](60a2cc2)), closes [#457](#457) * **operator:** add GPU CRD reference page with spec, status, lifecycle, and Gateway consumption example ([#458](#458)) ([39c66e7](39c66e7)) * **operator:** add keyless Llamacpp Gateway CR example ([#431](#431)) ([2937e3c](2937e3c)) * **operator:** note llamacpp requires operator v0.19.0+ ([#433](#433)) ([eca2735](eca2735)) * **typescript-adk:** PascalCase MessageRole enum members ([#427](#427)) ([23d43bc](23d43bc)) * **typescript-sdk:** document listModels include parameter and model metadata fields ([#454](#454)) ([a0cfd8b](a0cfd8b)) ### 🔧 Miscellaneous * **deps-dev:** bump the bun group with 2 updates ([#435](#435)) ([cc8f36c](cc8f36c)) * **deps:** bump actions/setup-node in the github-actions group ([#434](#434)) ([53324e0](53324e0))
Contributor
|
🎉 This PR is included in version 0.9.3 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves #451
Summary
Documents the Go SDK's new
includeparameter support onListModelsandListProviderModels. Both methods now accept optional variadicsdk.ListModelsParamsIncludeContextWindowandsdk.ListModelsParamsIncludePricingvalues, forwarded as?include=context_window,pricingto the gateway. When requested,Model.ContextWindowis populated; it isnilwhen not requested and an explicitnullfrom the gateway when requested but unresolvable.Changes
ListModels(ctx, sdk.ListModelsParamsIncludeContextWindow)andListProviderModels(ctx, sdk.Groq, sdk.ListModelsParamsIncludeContextWindow, sdk.ListModelsParamsIncludePricing)usageModel.ContextWindow: nil (not requested), populated (resolved), explicit null (requested but unresolvable)context_windowfield in a model response