forked from phoenix/litellm-mirror
docs
This commit is contained in:
parent
632d928bfb
commit
99f08b45fc
1 changed files with 2 additions and 2 deletions
|
@ -12,7 +12,7 @@ pip install litellm vllm
|
||||||
import litellm
|
import litellm
|
||||||
|
|
||||||
response = completion(
|
response = completion(
|
||||||
model="vllm/facebook/opt-125m",
|
model="vllm/facebook/opt-125m", # add a vllm prefix so litellm knows the custom_llm_provider==vllm
|
||||||
messages=messages,
|
messages=messages,
|
||||||
temperature=0.2,
|
temperature=0.2,
|
||||||
max_tokens=80)
|
max_tokens=80)
|
||||||
|
@ -30,7 +30,7 @@ In order to use litellm to call a hosted vllm server add the following to your c
|
||||||
import litellm
|
import litellm
|
||||||
|
|
||||||
response = completion(
|
response = completion(
|
||||||
model="vllm/facebook/opt-125m",
|
model="facebook/opt-125m", # pass the vllm model name
|
||||||
messages=messages,
|
messages=messages,
|
||||||
api_base="https://hosted-vllm-api.co/v1",
|
api_base="https://hosted-vllm-api.co/v1",
|
||||||
custom_llm_provider="openai",
|
custom_llm_provider="openai",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue