feat: add OpenAI Responses API endpoint support#219
Open
Alex1Yuan wants to merge 1 commit intoericc-ch:masterfrom
Open
feat: add OpenAI Responses API endpoint support#219Alex1Yuan wants to merge 1 commit intoericc-ch:masterfrom
Alex1Yuan wants to merge 1 commit intoericc-ch:masterfrom
Conversation
Add /v1/responses and /responses endpoints that forward requests directly to GitHub Copilot's responses API. This enables support for responses-only models like gpt-5.4 and gpt-5.3-codex.
Contributor
|
@Alex1Yuan Duplicated with #170. You can use https://github.com/caozhiyuan/copilot-api (includes many advanced features). This repository hasn't been maintained for half a year. |
Author
Get it, thank you. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/v1/responsesand/responsesendpoints that forward requests directly to GitHub Copilot's responses APIChanges
src/services/copilot/create-responses.ts— Copilot responses API clientsrc/routes/responses/route.ts— Route registration with error handlingsrc/routes/responses/handler.ts— Request handler (streaming + non-streaming)src/server.ts— Register new endpointsTest plan
tsc --noEmit)unsupported_api_for_modelerror