mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-23 00:41:40 +00:00
Merge pull request #2548 from zdsfwy/main
fix bug: custom prompt templates registered are never applied to vllm provider
This commit is contained in:
commit
0ca619dc5d
1 changed files with 2 additions and 0 deletions
|
|
@ -1780,9 +1780,11 @@ def completion(
|
|||
## RESPONSE OBJECT
|
||||
response = response
|
||||
elif custom_llm_provider == "vllm":
|
||||
custom_prompt_dict = custom_prompt_dict or litellm.custom_prompt_dict
|
||||
model_response = vllm.completion(
|
||||
model=model,
|
||||
messages=messages,
|
||||
custom_prompt_dict=custom_prompt_dict,
|
||||
model_response=model_response,
|
||||
print_verbose=print_verbose,
|
||||
optional_params=optional_params,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue