-
-
Notifications
You must be signed in to change notification settings - Fork 247
feature about responses api #142
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
Open
caozhiyuan
wants to merge
21
commits into
ericc-ch:master
Choose a base branch
from
caozhiyuan:feature/responses-api
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
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
…se output message type
…nd state management
…ure in translation tests
…arsing and allign with vscode-copilot-chat extractThinkingData, otherwise it will cause miss cache occasionally
…ing signature check and update prompt
…ing small model if no tools are used 2.add bun idleTimeout = 0 3.feat: Compatible with Claude code JSONL file usage error scenarios, delay closeBlockIfOpen and map responses api to anthropic support tool_use and fix spelling errors 4.feat: add configuration management with extra prompt handling and ensure config file creation
…is incompatible with gpt-5-mini
…ssage translation
…just runServer to set verbose level correctly
…ponses-api # Conflicts: # src/start.ts
michalsytko
approved these changes
Nov 5, 2025
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.
This pull request introduces a new configuration system, structured logging, and support for the
/v1/responsesendpoint, along with improvements to model selection and request handling. The most important changes are grouped below:Responses API Integration
/v1/responsesendpoint, including a new handler (src/routes/responses/handler.ts) that validates model support, streams or returns results, and logs all activity.src/routes/messages/handler.tsto route requests to the Responses API when supported by the selected model, including translation logic for payloads and results. [1] [2]Configuration System
src/lib/config.tsto provide persistent configuration management, including default prompts, small model selection, and reasoning effort levels for models. This enables dynamic model selection and custom prompt injection.src/lib/paths.tsto include a path for the configuration file and ensure its existence at startup.Structured Logging
src/lib/logger.tsthat supports per-handler log files, log rotation, and verbosity control, replacing directconsolausage in request handlers.src/routes/chat-completions/handler.tsandsrc/routes/messages/handler.tsto use the new logger, improving log clarity and manageability. [1] [2] [3] [4] [5] [6] [7] [8] [9]Model Selection and Request Handling
verboseflag to the globalstateobject to control logging verbosity across the application.Documentation
README.mdto include the new/v1/responsesendpoint and clarify its purpose.