forked from phoenix-oss/llama-stack-mirror
chore: allow to pass CA cert to remote vllm (#2266)
# What does this PR do? The `tls_verify` can now receive a path to a certificate file if the endpoint requires it. Signed-off-by: Sébastien Han <seb@redhat.com>
This commit is contained in:
parent
7710b2f43b
commit
39b33a3b01
2 changed files with 16 additions and 4 deletions
|
@ -313,7 +313,7 @@ class VLLMInferenceAdapter(Inference, ModelsProtocolPrivate):
|
|||
return AsyncOpenAI(
|
||||
base_url=self.config.url,
|
||||
api_key=self.config.api_token,
|
||||
http_client=None if self.config.tls_verify else httpx.AsyncClient(verify=False),
|
||||
http_client=httpx.AsyncClient(verify=self.config.tls_verify),
|
||||
)
|
||||
|
||||
async def completion(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue