Skip to content

Commit

Permalink
Allow http_client parameter for RHOAI and RHELAI
Browse files Browse the repository at this point in the history
  • Loading branch information
tisnik authored and jameswnl committed Oct 16, 2024
1 parent 7909fbe commit a30427f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ols/src/llms/providers/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from dataclasses import dataclass
from typing import Any, Optional

import httpx
from ibm_watsonx_ai.metanames import (
GenTextParamsMetaNames as GenParams,
)
Expand Down Expand Up @@ -80,6 +81,7 @@ class ProviderParameter:
ProviderParameter("temperature", float),
ProviderParameter("max_tokens", int),
ProviderParameter("verbose", bool),
ProviderParameter("http_client", httpx.Client),
}

RHELAIVLLMParameters = {
Expand All @@ -95,6 +97,7 @@ class ProviderParameter:
ProviderParameter("temperature", float),
ProviderParameter("max_tokens", int),
ProviderParameter("verbose", bool),
ProviderParameter("http_client", httpx.Client),
}

BAMParameters = {
Expand Down

0 comments on commit a30427f

Please sign in to comment.