Skip to content

Commit 6e00b22

Browse files
committed
potential fixes
1 parent 327bab0 commit 6e00b22

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

  • packages/uipath_langchain_client/src/uipath_langchain_client/clients/google

packages/uipath_langchain_client/src/uipath_langchain_client/clients/google/chat_models.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from typing import Self
22

33
from httpx import URL, Request
4-
from pydantic import Field, SecretStr, model_validator
4+
from pydantic import Field, model_validator
55
from uipath_langchain_client.base_client import UiPathBaseLLMClient
66
from uipath_langchain_client.settings import UiPathAPIConfig
77

@@ -29,7 +29,8 @@ class UiPathChatGoogleGenerativeAI(UiPathBaseLLMClient, ChatGoogleGenerativeAI):
2929

3030
# Override fields to avoid errors when instantiating the class
3131
model: str = Field(default="", alias="model_name")
32-
google_api_key: SecretStr | None = Field(default=SecretStr("PLACEHOLDER"))
32+
project: str | None = "PLACEHOLDER"
33+
location: str | None = "PLACEHOLDER"
3334

3435
@model_validator(mode="after")
3536
def setup_uipath_client(self) -> Self:

0 commit comments

Comments
 (0)