mirror of
https://github.com/CJackHwang/ds2api.git
synced 2026-05-18 15:15:08 +08:00
feat: Implement admin settings UI, enhance admin authentication with password hashing, and add new streaming runtime logic for Claude and OpenAI adapters with extensive compatibility tests.
This commit is contained in:
8
tests/compat/expected/sse_fragments_append.json
Normal file
8
tests/compat/expected/sse_fragments_append.json
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"parts": [
|
||||
{"text": "思考中", "type": "thinking"},
|
||||
{"text": "结论", "type": "text"}
|
||||
],
|
||||
"finished": false,
|
||||
"new_type": "text"
|
||||
}
|
||||
5
tests/compat/expected/sse_nested_finished.json
Normal file
5
tests/compat/expected/sse_nested_finished.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"parts": [],
|
||||
"finished": true,
|
||||
"new_type": "text"
|
||||
}
|
||||
8
tests/compat/expected/sse_split_tool_json.json
Normal file
8
tests/compat/expected/sse_split_tool_json.json
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"parts": [
|
||||
{"text": "{\"", "type": "text"},
|
||||
{"text": "tool_calls\":[{\"name\":\"read_file\",\"input\":{\"path\":\"README.MD\"}}]}", "type": "text"}
|
||||
],
|
||||
"finished": false,
|
||||
"new_type": "text"
|
||||
}
|
||||
7
tests/compat/expected/token_cases.json
Normal file
7
tests/compat/expected/token_cases.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"cases": [
|
||||
{"name": "ascii_short", "tokens": 1},
|
||||
{"name": "cjk", "tokens": 3},
|
||||
{"name": "mixed", "tokens": 4}
|
||||
]
|
||||
}
|
||||
3
tests/compat/expected/toolcalls_fenced_json.json
Normal file
3
tests/compat/expected/toolcalls_fenced_json.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"calls": []
|
||||
}
|
||||
5
tests/compat/expected/toolcalls_unknown_name.json
Normal file
5
tests/compat/expected/toolcalls_unknown_name.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"calls": [
|
||||
{"name": "unknown_tool", "input": {"x": 1}}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user