Skip to content

Commit

Permalink
fix: remove unnecessary imports and format code.
Browse files Browse the repository at this point in the history
  • Loading branch information
cauwulixuan committed Jan 29, 2024
1 parent ca6e115 commit 6e04433
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
4 changes: 2 additions & 2 deletions libs/community/langchain_community/chat_models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@
from langchain_community.chat_models.vertexai import ChatVertexAI
from langchain_community.chat_models.volcengine_maas import VolcEngineMaasChat
from langchain_community.chat_models.yandex import ChatYandexGPT
from langchain_community.chat_models.zhipuai import ChatZhipuAI
from langchain_community.chat_models.yuan2 import ChatYuan2
from langchain_community.chat_models.zhipuai import ChatZhipuAI

__all__ = [
"LlamaEdgeChatService",
Expand Down Expand Up @@ -89,6 +89,6 @@
"GigaChat",
"VolcEngineMaasChat",
"GPTRouter",
"ChatZhipuAI",
"ChatYuan2",
"ChatZhipuAI",
]
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
"""Test ChatYuan2 wrapper."""
from typing import Any, Optional

import pytest
from langchain_core.callbacks import CallbackManager
from langchain_core.messages import AIMessage, BaseMessage, HumanMessage, SystemMessage
from langchain_core.messages import BaseMessage, HumanMessage, SystemMessage
from langchain_core.outputs import (
ChatGeneration,
ChatResult,
LLMResult,
)
from langchain_core.prompts import ChatPromptTemplate
from langchain_core.pydantic_v1 import BaseModel, Field

from langchain_community.chat_models.yuan2 import ChatYuan2
from tests.unit_tests.callbacks.fake_callback_handler import FakeCallbackHandler
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
"VolcEngineMaasChat",
"LlamaEdgeChatService",
"GPTRouter",
"ChatZhipuAI",
"ChatYuan2",
"ChatZhipuAI",
]


Expand Down

0 comments on commit 6e04433

Please sign in to comment.