fix LiteLLMParams typing (#2285)
This commit is contained in:
@@ -747,7 +747,7 @@ if settings.ENABLE_VERTEX_AI:
|
||||
add_assistant_prefix=False,
|
||||
max_completion_tokens=65535,
|
||||
litellm_params=LiteLLMParams(
|
||||
vertex_credentials=settings.VERTEX_CREDENTIALS, # type: ignore
|
||||
vertex_credentials=settings.VERTEX_CREDENTIALS,
|
||||
),
|
||||
),
|
||||
)
|
||||
@@ -760,7 +760,7 @@ if settings.ENABLE_VERTEX_AI:
|
||||
add_assistant_prefix=False,
|
||||
max_completion_tokens=65535,
|
||||
litellm_params=LiteLLMParams(
|
||||
vertex_credentials=settings.VERTEX_CREDENTIALS, # type: ignore
|
||||
vertex_credentials=settings.VERTEX_CREDENTIALS,
|
||||
),
|
||||
),
|
||||
)
|
||||
|
||||
@@ -9,11 +9,12 @@ from skyvern.forge.sdk.schemas.task_v2 import TaskV2, Thought
|
||||
from skyvern.forge.sdk.settings_manager import SettingsManager
|
||||
|
||||
|
||||
class LiteLLMParams(TypedDict):
|
||||
class LiteLLMParams(TypedDict, total=False):
|
||||
api_key: str | None
|
||||
api_version: str | None
|
||||
api_base: str | None
|
||||
model_info: dict[str, Any] | None
|
||||
vertex_credentials: str | None
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
|
||||
Reference in New Issue
Block a user