You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[DOCS] Document new chat completion request params in Go SDK #252
The Go SDK (github.com/inference-gateway/sdk) regenerated its types from the updated openapi.yaml (inference-gateway/schemas#71), exposing new optional request parameters on CreateChatCompletionRequest.
User-facing change: the following fields are now available to SDK callers and may want documentation / examples.
Added a Request parameters section to the Go SDK part of sdks.md, documenting the optional CreateChatCompletionRequest fields the regenerated SDK now exposes via client.WithOptions(...):
logit_bias (*map[string]int) and the reasoning_effort enum (sdk.Minimal/Low/Medium/High)
The three oneOf unions with their generated From... constructors: stop (string or array), response_format (text / json_object / json_schema, incl. Structured Outputs), and tool_choice (none/auto/required or named function)
max_tokens deprecation in favor of max_completion_tokens
The WithOptions merge rules + a full field reference table
Notes
api-reference.md already documented these at the REST level; this fills the matching gap in the Go SDK quick reference.
Examples use a small local ptr[T any] helper - the exact pattern the SDK's own request_fields_test.go uses. The SDK does not export a Ptr, so the page's prior sdk.Ptr(...) reference isn't actually buildable; the new examples don't rely on it.
Drive-by fix: the vision example used &sdk.High/&sdk.Low for image detail, but those are reasoning_effort constants - corrected to &sdk.ImageURLDetailHigh/&sdk.ImageURLDetailLow (what NewImageContentPart expects).
Verification
bun run lint:md, bun run format:check, and bun run build all pass.
Activity
edenreich commentedon Jun 18, 2026
@claude Can you document it?
inference-gateway-maintainer commentedon Jun 18, 2026
Claude finished @edenreich's task in 14m 2s —— View job •
docs/issue-252-20260618-2110• [Create PR ➔](https://github.com/inference-gateway/docs/compare/main...docs/issue-252-20260618-2110?quick_pull=1&title=Issue%20%23252%3A%20Changes%20from%20Claude&body=This%20PR%20addresses%20issue%20%23252%0A%0AGenerated%20with%20%5BClaude%20Code%5D(https%3A%2F%2Fclaude.ai%2Fcode)Documenting new chat completion request params in Go SDK
sdks.mdDone. Opened PR #254.
What changed
Added a Request parameters section to the Go SDK part of
sdks.md, documenting the optionalCreateChatCompletionRequestfields the regenerated SDK now exposes viaclient.WithOptions(...):temperature,top_p,n,frequency_penalty,presence_penalty,seed,logprobs,top_logprobs,user,max_completion_tokenslogit_bias(*map[string]int) and thereasoning_effortenum (sdk.Minimal/Low/Medium/High)From...constructors:stop(string or array),response_format(text / json_object / json_schema, incl. Structured Outputs), andtool_choice(none/auto/required or named function)max_tokensdeprecation in favor ofmax_completion_tokensWithOptionsmerge rules + a full field reference tableNotes
api-reference.mdalready documented these at the REST level; this fills the matching gap in the Go SDK quick reference.ptr[T any]helper - the exact pattern the SDK's ownrequest_fields_test.gouses. The SDK does not export aPtr, so the page's priorsdk.Ptr(...)reference isn't actually buildable; the new examples don't rely on it.&sdk.High/&sdk.Lowfor image detail, but those arereasoning_effortconstants - corrected to&sdk.ImageURLDetailHigh/&sdk.ImageURLDetailLow(whatNewImageContentPartexpects).Verification
bun run lint:md,bun run format:check, andbun run buildall pass.docs/issue-252-20260618-2110- PR #254docs: document new chat completion request params in go sdk
chore(release): 🔖 0.6.113 [skip ci]
inference-gateway-releaser commentedon Jun 24, 2026
🎉 This issue has been resolved in version 0.6.113 🎉
The release is available on GitHub release
Your semantic-release bot 📦🚀