Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ktransformers
Commits
0f7a3e5f
Commit
0f7a3e5f
authored
Apr 29, 2025
by
Atream
Browse files
fix-client
parent
cc94a02a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ktransformers/tests/test_client.py
ktransformers/tests/test_client.py
+2
-2
No files found.
ktransformers/tests/test_client.py
View file @
0f7a3e5f
...
@@ -93,12 +93,12 @@ async def main(prompt_id, model, stream, max_tokens, temperature, top_p):
...
@@ -93,12 +93,12 @@ async def main(prompt_id, model, stream, max_tokens, temperature, top_p):
if
__name__
==
"__main__"
:
if
__name__
==
"__main__"
:
parser
=
argparse
.
ArgumentParser
(
description
=
"Event Stream Request Tester"
)
parser
=
argparse
.
ArgumentParser
(
description
=
"Event Stream Request Tester"
)
parser
.
add_argument
(
"--question_id"
,
type
=
int
,
default
=
0
)
parser
.
add_argument
(
"--question_id"
,
type
=
int
,
default
=
0
)
parser
.
add_argument
(
"--model"
,
type
=
str
,
required
=
True
)
parser
.
add_argument
(
"--model"
,
type
=
str
,
default
=
"DeepSeek-V3"
)
parser
.
add_argument
(
"--stream"
,
type
=
bool
,
default
=
True
)
parser
.
add_argument
(
"--stream"
,
type
=
bool
,
default
=
True
)
parser
.
add_argument
(
"--max_tokens"
,
type
=
int
,
default
=
500
)
parser
.
add_argument
(
"--max_tokens"
,
type
=
int
,
default
=
500
)
parser
.
add_argument
(
"--temperature"
,
type
=
float
,
default
=
0.8
)
parser
.
add_argument
(
"--temperature"
,
type
=
float
,
default
=
0.8
)
parser
.
add_argument
(
"--top_p"
,
type
=
float
,
default
=
1
)
parser
.
add_argument
(
"--top_p"
,
type
=
float
,
default
=
1
)
parser
.
add_argument
(
"--api_url"
,
type
=
str
,
default
=
"http://localhost:1000
6
/v1/chat/completions"
,
help
=
"API URL"
)
parser
.
add_argument
(
"--api_url"
,
type
=
str
,
default
=
"http://localhost:1000
2
/v1/chat/completions"
,
help
=
"API URL"
)
args
=
parser
.
parse_args
()
args
=
parser
.
parse_args
()
SERVER_URL
=
args
.
api_url
SERVER_URL
=
args
.
api_url
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment