Skip to content

Commit

Permalink
Check red
Browse files Browse the repository at this point in the history
  • Loading branch information
hinthornw committed Jan 16, 2024
1 parent 1ee8af2 commit f728fa0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions python/langsmith/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
import requests
from requests import adapters as requests_adapters
from urllib3.util import Retry

import langsmith
from langsmith import env as ls_env
from langsmith import schemas as ls_schemas
Expand Down
2 changes: 1 addition & 1 deletion python/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "langsmith"
version = "0.0.80"
version = "0.0.81"
description = "Client library to connect to the LangSmith LLM Tracing and Evaluation Platform."
authors = ["LangChain <[email protected]>"]
license = "MIT"
Expand Down
5 changes: 3 additions & 2 deletions python/tests/unit_tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,11 @@ def test_validate_api_key_if_hosted(monkeypatch: pytest.MonkeyPatch) -> None:
def test_headers(monkeypatch: pytest.MonkeyPatch) -> None:
monkeypatch.delenv("LANGCHAIN_API_KEY", raising=False)
client = Client(api_url="http://localhost:1984", api_key="123")
assert client._headers == {"x-api-key": "123"}
assert "x-api-key" in client._headers
assert client._headers["x-api-key"] == "123"

client_no_key = Client(api_url="http://localhost:1984")
assert client_no_key._headers == {}
assert "x-api-key" not in client_no_key._headers


@mock.patch("langsmith.client.requests.Session")
Expand Down

0 comments on commit f728fa0

Please sign in to comment.