Skip to content

Commit

Permalink
[autofix.ci] apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Dec 14, 2024
1 parent 6dbc5bb commit cd7dfde
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import os

import pytest
from langflow.components.models.baidu_qianfan_chat import QianfanChatEndpointComponent
from langchain_community.chat_models.baidu_qianfan_endpoint import QianfanChatEndpoint
from langchain.schema import HumanMessage
from langchain_community.chat_models.baidu_qianfan_endpoint import QianfanChatEndpoint
from langflow.components.models.baidu_qianfan_chat import QianfanChatEndpointComponent


@pytest.fixture
Expand Down Expand Up @@ -81,7 +82,6 @@ def test_invalid_endpoint(qianfan_credentials):
)
def test_qianfan_different_models(qianfan_credentials, model_name):
"""Test different Qianfan models with a simple prompt"""

Check failure on line 84 in src/backend/tests/unit/components/models/test_baidu_qianfan.py

View workflow job for this annotation

GitHub Actions / Ruff Style Check (3.12)

Ruff (D415)

src/backend/tests/unit/components/models/test_baidu_qianfan.py:84:5: D415 First line should end with a period, question mark, or exclamation point

component = QianfanChatEndpointComponent(
model=model_name,
qianfan_ak=qianfan_credentials["ak"],
Expand All @@ -101,4 +101,4 @@ def test_qianfan_different_models(qianfan_credentials, model_name):
try:
response = chat_model(messages)
except Exception as e:
pytest.fail(f"Model {model_name} failed with error: {str(e)}")
pytest.fail(f"Model {model_name} failed with error: {e!s}")

0 comments on commit cd7dfde

Please sign in to comment.