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
e9d32d07
Unverified
Commit
e9d32d07
authored
Jun 27, 2024
by
Cyrus Leung
Committed by
GitHub
Jun 27, 2024
Browse files
[CI/Build] [1/3] Reorganize entrypoints tests (#5526)
parent
2061f0b8
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
896 additions
and
774 deletions
+896
-774
tests/entrypoints/test_openai_chat.py
tests/entrypoints/test_openai_chat.py
+875
-0
tests/entrypoints/test_openai_server.py
tests/entrypoints/test_openai_server.py
+19
-772
tests/entrypoints/test_openai_vision.py
tests/entrypoints/test_openai_vision.py
+2
-2
No files found.
tests/entrypoints/test_openai_chat.py
0 → 100644
View file @
e9d32d07
This diff is collapsed.
Click to expand it.
tests/entrypoints/test_openai_server.py
View file @
e9d32d07
This diff is collapsed.
Click to expand it.
tests/entrypoints/test_openai_vision.py
View file @
e9d32d07
from
pathlib
import
Path
from
typing
import
Dict
from
typing
import
Dict
,
List
import
openai
import
pytest
...
...
@@ -216,7 +216,7 @@ async def test_chat_streaming_image(client: openai.AsyncOpenAI,
temperature
=
0.0
,
stream
=
True
,
)
chunks
=
[]
chunks
:
List
[
str
]
=
[]
finish_reason_count
=
0
async
for
chunk
in
stream
:
delta
=
chunk
.
choices
[
0
].
delta
...
...
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