-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Modifications to allow direct-endpoint tests to use responses api #1047
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…ugh it is used, it is not part of the interface. But defining it in the interface causes issues.
There was a problem hiding this 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.
/*---------------------------------------------------------------------------------------------
Modifications to allow direct-endpoint tests to use responses api