Skip to content

Comments

全渠道适配 工具调用优化 后端优化#37

Merged
CJackHwang merged 18 commits intomainfrom
dev
Feb 18, 2026
Merged

全渠道适配 工具调用优化 后端优化#37
CJackHwang merged 18 commits intomainfrom
dev

Conversation

@CJackHwang
Copy link
Owner

继续优化使用链路

…o-github-actions

ci: include docker image artifacts in release assets
…allbacks, and update documentation for `config.json` best practices.
…, enhancing `MessagesPrepare` to support additional content types and tool call formatting.
… and refine tool call and OpenAI handler logic.
…ckages including SSE, Claude, Auth, Account, Config, Deepseek, Admin, and Util.
…ken-only synthetic IDs across API, UI, and documentation.
…s, and improved OpenAI/Claude adapter handling for responses, embeddings, and tool calls.
…for OpenAI and Claude, enhance tool call streaming, and improve caller identification.
…d make `wide_input_strict_output` configurable.
…onses when structured tool calls are present.
@vercel
Copy link

vercel bot commented Feb 18, 2026

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

Project Deployment Actions Updated (UTC)
ds2api Ready Ready Preview, Comment Feb 18, 2026 5:13pm

@CJackHwang CJackHwang merged commit 3239ef3 into main Feb 18, 2026
2 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: d21aedac83

ℹ️ 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".

)

func (h *Handler) Embeddings(w http.ResponseWriter, r *http.Request) {
a, err := h.Auth.Determine(r)

Choose a reason for hiding this comment

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

P1 Badge Avoid acquiring pooled accounts for embeddings auth

Embeddings authenticates with h.Auth.Determine, which acquires from the managed account pool and can return ErrNoAccount (429) when chat traffic saturates the pool, but this handler never uses the acquired account/token afterward because embeddings are generated locally. As written, managed-key embeddings requests can be rejected under pool pressure even though no DeepSeek account is required; caller-only auth should be used here to prevent unnecessary availability loss.

Useful? React with 👍 / 👎.

Comment on lines +108 to +112
default:
s := strings.TrimSpace(fmt.Sprintf("%v", iv))
if s != "" {
out = append(out, s)
}

Choose a reason for hiding this comment

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

P2 Badge Parse top-level token arrays as one embedding input

In extractEmbeddingInputs, the []any branch stringifies scalar elements in the default case, so a token-array payload like "input": [101, 102, 103] is interpreted as three separate inputs instead of one token sequence. That returns the wrong number of embeddings and breaks compatibility for the documented token-array input shape.

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