mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-26 13:59:49 +00:00
community[patch]: fix extended deps (#26238)
This commit is contained in:
@@ -34,7 +34,6 @@ hologres-vector==0.0.6
|
||||
html2text>=2020.1.16
|
||||
httpx>=0.24.1,<0.25
|
||||
httpx-sse>=0.4.0,<0.5
|
||||
javelin-sdk>=0.1.8,<0.2
|
||||
jinja2>=3,<4
|
||||
jq>=1.4.1,<2
|
||||
jsonschema>1
|
||||
@@ -60,6 +59,7 @@ pgvector>=0.1.6,<0.2
|
||||
praw>=7.7.1,<8
|
||||
premai>=0.3.25,<0.4
|
||||
psychicapi>=0.8.0,<0.9
|
||||
pydantic>=2.7.4,<3
|
||||
py-trello>=0.19.0,<0.20
|
||||
pyjwt>=2.8.0,<3
|
||||
pymupdf>=1.22.3,<2
|
||||
|
@@ -1,12 +1,10 @@
|
||||
"""Test `Javelin AI Gateway` chat models"""
|
||||
|
||||
import pytest
|
||||
from pydantic import SecretStr
|
||||
|
||||
from langchain_community.chat_models import ChatJavelinAIGateway
|
||||
|
||||
|
||||
@pytest.mark.requires("javelin_sdk")
|
||||
def test_api_key_is_secret_string() -> None:
|
||||
llm = ChatJavelinAIGateway(
|
||||
gateway_uri="<javelin-ai-gateway-uri>",
|
||||
@@ -18,7 +16,6 @@ def test_api_key_is_secret_string() -> None:
|
||||
assert llm.javelin_api_key.get_secret_value() == "secret-api-key"
|
||||
|
||||
|
||||
@pytest.mark.requires("javelin_sdk")
|
||||
def test_api_key_masked_when_passed_via_constructor() -> None:
|
||||
llm = ChatJavelinAIGateway(
|
||||
gateway_uri="<javelin-ai-gateway-uri>",
|
||||
@@ -32,7 +29,6 @@ def test_api_key_masked_when_passed_via_constructor() -> None:
|
||||
assert "secret-api-key" not in repr(llm)
|
||||
|
||||
|
||||
@pytest.mark.requires("javelin_sdk")
|
||||
def test_api_key_alias() -> None:
|
||||
for model in [
|
||||
ChatJavelinAIGateway(
|
Reference in New Issue
Block a user