mirror of
https://github.com/CJackHwang/ds2api.git
synced 2026-05-08 18:35:35 +08:00
refactor: Relocate JavaScript source and Node.js test files to dedicated directories and extract OpenAI stream runtime tool call finalization logic.
This commit is contained in:
@@ -10,7 +10,7 @@ ENTRY_MAX=120
|
||||
is_entry_file() {
|
||||
case "$1" in
|
||||
api/chat-stream.js|\
|
||||
api/helpers/stream-tool-sieve.js|\
|
||||
internal/js/helpers/stream-tool-sieve.js|\
|
||||
webui/src/App.jsx|\
|
||||
webui/src/components/AccountManager.jsx|\
|
||||
webui/src/components/ApiTester.jsx|\
|
||||
|
||||
@@ -5,4 +5,4 @@ ROOT_DIR="$(cd "$(dirname "$0")/../.." && pwd)"
|
||||
cd "$ROOT_DIR"
|
||||
|
||||
./tests/scripts/check-node-split-syntax.sh
|
||||
node --test api/helpers/stream-tool-sieve.test.js api/chat-stream.test.js api/compat/js_compat_test.js "$@"
|
||||
node --test tests/node/stream-tool-sieve.test.js tests/node/chat-stream.test.js tests/node/js_compat_test.js "$@"
|
||||
|
||||
Reference in New Issue
Block a user