mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 11:43:54 +00:00
parent
0038dc1762
commit
a091964dd4
1 changed files with 1 additions and 2 deletions
|
@ -29,8 +29,7 @@ class VLLMError(Exception):
|
||||||
def validate_environment(model: str):
|
def validate_environment(model: str):
|
||||||
global llm
|
global llm
|
||||||
try:
|
try:
|
||||||
from litellm.llms.vllm.completion.handler import LLM # type: ignore
|
from vllm import LLM, SamplingParams # type: ignore
|
||||||
from litellm.llms.vllm.completion.handler import SamplingParams # type: ignore
|
|
||||||
|
|
||||||
if llm is None:
|
if llm is None:
|
||||||
llm = LLM(model=model)
|
llm = LLM(model=model)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue