Skip to content

Comments

refactor: Relocate JavaScript source and Node.js test files to dedicated directories and extract OpenAI stream runtime tool call finalization logic.#41

Merged
CJackHwang merged 11 commits intomainfrom
dev
Feb 22, 2026
Merged

Conversation

@CJackHwang
Copy link
Owner

💻 变更类型 | Change Type

  • ✨ feat
  • 🐛 fix
  • ♻️ refactor
  • 💄 style
  • 👷 build
  • ⚡️ perf
  • 📝 docs
  • 🔨 chore

🔀 变更说明 | Description of Change

📝 补充信息 | Additional Information

…eaming and tool calls, enhance admin and account management, and introduce new UI features for settings, API testing, and Vercel sync.
… as content and filtering streamed tool calls by schema.
…hance tool call handling and configuration options
…ed tool choice failures are correctly handled for malformed payloads.
…nhanced Admin API endpoints with related documentation and deployment updates.
…ted directories and extract OpenAI stream runtime tool call finalization logic.
@vercel
Copy link

vercel bot commented Feb 22, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
ds2api Ready Ready Preview, Comment Feb 22, 2026 2:46pm

@CJackHwang CJackHwang merged commit 6b3523a into main Feb 22, 2026
2 of 7 checks passed
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d4017b87c1

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +266 to +270
if (out.length === 0 && parsed.length > 0) {
for (const tc of parsed) {
if (!tc || !tc.name) {
continue;
}

Choose a reason for hiding this comment

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

P1 Badge Remove fallback that re-adds disallowed tool calls

When all parsed calls are filtered out (for example, the model emits an undeclared tool name), this fallback loop repopulates out from the original parsed list, so the Node/Vercel stream path still emits tool_calls and finish_reason=tool_calls for rejected tools. In this commit the Go parser behavior and compat expectations were updated to reject unknown tool names, so this block creates a cross-runtime behavior regression and causes the unknown_name JS compat case to fail.

Useful? React with 👍 / 👎.

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.

1 participant