Skip to content

Commit

Permalink
fixed linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Feb 7, 2024
1 parent 0e8a142 commit 2d4135d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@
)
from langchain_core.outputs import ChatGeneration, ChatGenerationChunk, ChatResult
from langchain_core.pydantic_v1 import root_validator
from langchain_google_vertexai.llms import (
_VertexAICommon,
)
from vertexai.preview.generative_models import ( # type: ignore
Candidate,
Content,
Expand All @@ -58,6 +55,9 @@
from langchain_google_vertexai.functions_utils import (
_format_tools_to_vertex_tool,
)
from langchain_google_vertexai.llms import (
_VertexAICommon,
)

logger = logging.getLogger(__name__)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ def test_get_num_tokens_from_messages() -> None:
assert isinstance(token, int)
assert token == 3

#test for exception with chat-bison
# test for exception with chat-bison
model = ChatVertexAI(model_name="chat-bison", temperature=0.0)
with pytest.raises(Exception):
token = model.get_num_tokens_from_messages(messages=[message])
Expand Down

0 comments on commit 2d4135d

Please sign in to comment.