Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
48d5ca4e
Unverified
Commit
48d5ca4e
authored
Dec 29, 2025
by
Chauncey
Committed by
GitHub
Dec 29, 2025
Browse files
[CI] fix test_chat_truncation_content_not_null test (#31488)
Signed-off-by:
chaunceyjiang
<
chaunceyjiang@gmail.com
>
parent
bf73a3e4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
tests/entrypoints/openai/test_response_api_with_harmony.py
tests/entrypoints/openai/test_response_api_with_harmony.py
+8
-2
No files found.
tests/entrypoints/openai/test_response_api_with_harmony.py
View file @
48d5ca4e
...
...
@@ -999,9 +999,15 @@ async def test_function_call_with_previous_input_messages(
async
def
test_chat_truncation_content_not_null
(
client
:
OpenAI
,
model_name
:
str
):
response
=
await
client
.
chat
.
completions
.
create
(
model
=
model_name
,
messages
=
[{
"role"
:
"user"
,
"content"
:
"What is the role of AI in medicine?"
}],
messages
=
[
{
"role"
:
"user"
,
"content"
:
"What is the role of AI in medicine?"
"The response must exceed 350 words."
,
}
],
temperature
=
0.0
,
max_tokens
=
2
50
,
max_tokens
=
3
50
,
)
choice
=
response
.
choices
[
0
]
...
...
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