Skip to content

docs: document chat completion schema gaps - #210

Merged
edenreich merged 4 commits into
inference-gateway:mainfrom
slegarraga:docs/openai-compatible-request-fields-203
Jun 10, 2026
Merged

edenreich merged 4 commits into
inference-gateway:mainfrom
slegarraga:docs/openai-compatible-request-fields-203

Conversation

@slegarraga

Copy link
Copy Markdown
Contributor

Fixes #203.

Summary

  • document schema-backed reasoning_format fields for chat-completion requests and streaming responses
  • add the missing Message field table for tool-call and reasoning fields
  • correct the documented logprobs / ChatCompletionTokenLogprob shapes and include schema-backed streaming logprob/reasoning fields

Validation

  • npm ci (completed; npm warned that local Node v22.22.3 does not satisfy the repo engine ^24.15.0)
  • npm run format:check
  • npm run lint:md
  • npm run build

@slegarraga
slegarraga requested a review from a team as a code owner June 10, 2026 07:29
Comment thread api-reference.md Resolved

@edenreich edenreich left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@slegarraga Thanks for spotting some missing attributes, some generic objects are defined in the schema as struct, the rest of the changes looks good to me.

Comment thread api-reference.md Resolved
Comment thread api-reference.md Resolved
Comment thread api-reference.md Resolved
Comment thread api-reference.md Resolved
@slegarraga

Copy link
Copy Markdown
Contributor Author

Thanks, I adjusted this in 8d20c8c:

  • removed the non-schema function_call finish reason row
  • changed top_logprobs to ChatCompletionTokenLogprob[] to match the schema

Validation:

  • npm run format:check
  • npm run lint:md

@slegarraga

slegarraga commented Jun 10, 2026 •

Copy link
Copy Markdown
Contributor Author

Adjusted in f2a8d50 after the follow-up suggestion: logprobs is now documented as ChatCompletionTokenLogprob[] | null, while top_logprobs remains the array type.

Validation:

  • npm run format:check
  • npm run lint:md

@edenreich

edenreich commented Jun 10, 2026 •

Copy link
Copy Markdown
Contributor

Adjusted in 9e8b3e8 to apply that suggestion: logprobs is now documented as ChatCompletionTokenLogprob | null, while top_logprobs remains the array type.

Validation:

  • npm run format:check
  • npm run lint:md

@slegarraga Sorry my bad I suggested ChatCompletionTokenLogprob | null but it was supposed to be ChatCompletionTokenLogprob[] | null - I suggested it too late :)

Comment thread api-reference.md Resolved
@edenreich

Copy link
Copy Markdown
Contributor

LGTM. Thank you @slegarraga !

Comment thread api-reference.md Resolved
@edenreich
edenreich merged commit 883e593 into inference-gateway:main Jun 10, 2026
inference-gateway-releaser Bot pushed a commit that referenced this pull request Jun 10, 2026
## [0.6.110](0.6.109...0.6.110) (2026-06-10)

### 👷 CI

* centralize claude.yml via reusable workflow ([#208](#208)) ([e9e5571](e9e5571))
* **deps:** update inference workflow to version 0.7.9 ([7c898a8](7c898a8))
* **infer:** centralize infer.yml + sync .infer config ([#199](#199)) ([3913f65](3913f65))
* use GitHub App token and non-generic bot identity for release ([49ca5b5](49ca5b5))

### 📚 Documentation

* add dedicated Documentation Agent page ([#206](#206)) ([68b8f5e](68b8f5e))
* document bash whitelist file-write redirect restriction ([#190](#190)) ([8b93d5b](8b93d5b)), closes [#188](#188)
* document chat completion schema gaps ([#210](#210)) ([883e593](883e593))
* rework bash allow-list, approval, skills, chat-TUI docs ([#195](#195)) ([48adf12](48adf12))
* update README.md to reflect VitePress tech stack and current repo structure ([#205](#205)) ([a2506aa](a2506aa))

### 🔧 Miscellaneous

* **deps-dev:** bump @types/node from 25.9.1 to 25.9.2 in the npm group ([#193](#193)) ([b56a52b](b56a52b))
* **deps:** bump claude-code 2.1.158 -> 2.1.161 ([#196](#196)) ([8ec11c2](8ec11c2))
* **deps:** bump infer CLI v0.119.0 -> v0.120.0, infer-action v0.11.4 -> v0.11.6 ([#189](#189)) ([57cf040](57cf040))
* **deps:** bump infer CLI v0.120.0 -> v0.120.1, infer-action v0.11.6 -> v0.11.7 ([#191](#191)) ([f0dd62f](f0dd62f))
* **deps:** bump infer CLI v0.120.1 -> v0.121.0 ([#197](#197)) ([92592de](92592de))
* **deps:** bump infer-action v0.11.7 -> v0.12.0 ([#198](#198)) ([6d6b63e](6d6b63e))
* **deps:** bump infer-action v0.12.0 -> v0.12.1 ([#207](#207)) ([9572f74](9572f74))
* **deps:** bump the github-actions group with 2 updates ([#192](#192)) ([9f531a4](9f531a4))
@inference-gateway-releaser

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.6.110 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@inference-gateway-releaser inference-gateway-releaser Bot added the released Shipped in a release label Jun 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Shipped in a release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[DOCS] Add missing OpenAI-compatible request fields to API Reference

2 participants