Skip to content

Conversation

@shaunm-msft
Copy link
Contributor

Modifications to allow direct-endpoint tests to use responses api

@shaunm-msft shaunm-msft marked this pull request as ready for review September 16, 2025 22:25
Copilot AI review requested due to automatic review settings September 16, 2025 22:25
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds support for the "thinking" capability and "supported_endpoints" configuration to enable direct-endpoint tests to use the responses API. The changes allow model configurations to specify which endpoints they support and automatically enable the responses API when appropriate.

Key changes:

  • Adds "thinking" capability support to model configurations
  • Introduces "supported_endpoints" validation and configuration
  • Automatically enables responses API configuration based on supported endpoints

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
test/simulationMain.ts Adds validation for "thinking" capability and "supported_endpoints" array in model config parsing
src/platform/endpoint/test/node/test/openaiCompatibleEndpoint.spec.ts Updates test model configuration to include new "thinking" capability and supported endpoints
src/platform/endpoint/test/node/openaiCompatibleEndpoint.ts Implements responses API support with automatic configuration and custom request body handling
Comments suppressed due to low confidence (1)

src/platform/endpoint/test/node/openaiCompatibleEndpoint.ts:1

  • There is an extra closing brace on line 276. The code structure shows two closing braces in a row (lines 275 and 276) but only one opening brace for the if statement on line 262.
/*---------------------------------------------------------------------------------------------

@vs-code-engineering vs-code-engineering bot added this to the September 2025 milestone Sep 25, 2025
@lramos15 lramos15 added this pull request to the merge queue Sep 25, 2025
Merged via the queue into microsoft:main with commit 83b4aa9 Sep 25, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants