Registry Mirror
Skip to content

Conversation

@louis-johnston-db

Copy link
Copy Markdown
Contributor

Changes

Sends each tool to Unity Gateway with strict: false, as suggested in review on #2247. This builds on #2247, so the PR targets #2247's branch until #2247 merges.

Nothing changes for users yet. As in #2247, the databricks vendor isn't declared, so VS Code sends the provider no chat requests.

  • Why: without strict, OpenAI's Responses API turns strict mode on for GPT models wherever it can convert the schema. Strict mode makes every parameter required, so GPT models fill the optional parameters of Copilot's tools with guesses, where the tool's own default should apply. For example:
    • includePattern or includeIgnoredFiles when searching text;
    • filePaths when listing errors.
  • Copilot does the same: its own Responses client sends strict: false on every function tool.
  • Other model families don't use the field. The gateway accepts it from all of them (see Tests).

Tests

  • Unit: the conversion test now expects strict: false on every tool. Removing the field in the compiled code makes it fail.
  • Commands:
    • yarn test:lint;
    • tsc;
    • the full unit suite on VS Code 1.138 and 1.104.2 (1,384 passing, 10 pending on each);
    • the lm-chat tests on 1.140 (97 passing).
  • Against a staging workspace, with this PR's request shape, I sent a tool with one required and two optional parameters to each of the 58 models listed for the Responses route, with and without strict: false:
    • Every model that answered accepted strict: false. The models that failed did so the same way both times: not routable, not found, a rate limit of 0, or a tokens-per-minute limit.
    • GPT models: with strict left out, the gateway's reply showed strict mode on, and every call filled both optional parameters. With strict: false, the newest GPT models left them out every time; older ones still sometimes filled them.
    • The other families showed no strict setting and made the same calls either way.

This pull request and its description were written by Isaac.

Each tool now goes to Unity Gateway with `strict: false`. Without it,
OpenAI's Responses API turns strict mode on for GPT models wherever it
can convert the schema, and strict mode requires a value for every
parameter. GPT models then fill the optional parameters of Copilot's
tools with guesses, where the tool's own default should apply. Copilot's
own Responses client sends `strict: false` too.

On a staging workspace every listed model that answered accepted the
field. Only GPT models changed: with it, they can leave optional
parameters out.

Co-authored-by: Isaac <no-reply@databricks.com>

This branch was previously deployed

1 inactive deployment
test-trigger-is — 30d74749 Deployed Oct 13, 2026 by louis-johnston-db via Trigger Tests #2348
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant