feat: Implement tool call sieving and formatting for streaming responses in Node.js, add Go fallback for non-Vercel environments, and update Vercel configuration.

This commit is contained in:
CJACK
2026-02-17 00:26:34 +08:00
parent 770f5719d8
commit 555df63fbc
9 changed files with 855 additions and 31 deletions

View File

@@ -115,7 +115,8 @@ export default function ApiTester({ config, onMessage, authFetch }) {
headers['X-Ds2-Target-Account'] = selectedAccount
}
const res = await fetch('/v1/chat/completions', {
const endpoint = streamingMode ? '/v1/chat/completions' : '/v1/chat/completions?__go=1'
const res = await fetch(endpoint, {
method: 'POST',
headers,
body: JSON.stringify({