mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 11:14:04 +00:00
parent
222dad27d7
commit
553453daa9
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