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
change
sglang
Commits
5ff60eda
Unverified
Commit
5ff60eda
authored
Jul 16, 2024
by
Liangsheng Yin
Committed by
GitHub
Jul 16, 2024
Browse files
Fix vertexai (#633)
parent
c1930022
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
python/sglang/backend/vertexai.py
python/sglang/backend/vertexai.py
+1
-4
No files found.
python/sglang/backend/vertexai.py
View file @
5ff60eda
...
...
@@ -14,15 +14,12 @@ try:
GenerativeModel
,
Image
,
)
from
vertexai.generative_models._generative_models
import
SafetySettingsType
except
ImportError
as
e
:
GenerativeModel
=
e
class
VertexAI
(
BaseBackend
):
def
__init__
(
self
,
model_name
,
safety_settings
:
Optional
[
SafetySettingsType
]
=
None
):
def
__init__
(
self
,
model_name
,
safety_settings
=
None
):
super
().
__init__
()
if
isinstance
(
GenerativeModel
,
Exception
):
...
...
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