Skip to content

Feature/gpt 5 codex#9

Merged
cuipengfei merged 4 commits into
cuipengfei:devfrom
caozhiyuan:feature/gpt-5-codex
Sep 30, 2025
Merged

Feature/gpt 5 codex#9
cuipengfei merged 4 commits into
cuipengfei:devfrom
caozhiyuan:feature/gpt-5-codex

Conversation

@cuipengfei
Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings September 30, 2025 02:19
Copy link
Copy Markdown

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 GPT-5 Codex by implementing a new Responses API endpoint that enables access to reasoning and tool calling capabilities. The implementation includes translation layers between Anthropic's message format and the new Responses API format.

  • Adds complete Responses API service layer with types and handlers
  • Implements bidirectional translation between Anthropic messages and Responses payload format
  • Extends the existing messages handler to route compatible models to the new Responses API

Reviewed Changes

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

Show a summary per file
File Description
src/services/copilot/create-responses.ts Defines Responses API types and service layer for calling the new endpoint
src/routes/responses/route.ts HTTP route handler for the /responses endpoint
src/routes/responses/handler.ts Core request handling logic with model validation and streaming support
src/routes/responses/utils.ts Utility functions for extracting vision and initiator information from requests
src/routes/messages/responses-translation.ts Translation layer between Anthropic and Responses API formats
src/routes/messages/responses-stream-translation.ts Stream event translation for real-time responses
src/routes/messages/handler.ts Updates messages handler to route to Responses API for compatible models
src/services/copilot/get-models.ts Extends model interface with new capabilities and endpoint support
src/server.ts Registers new /responses routes
tests/translation.test.ts Unit tests for message translation functionality
tests/responses-stream-translation.test.ts Unit tests for stream event translation

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@cuipengfei cuipengfei merged commit 1df7e89 into cuipengfei:dev Sep 30, 2025
1 check passed
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.

3 participants