Skip to content

Commit

Permalink
lock
Browse files Browse the repository at this point in the history
  • Loading branch information
hinthornw committed Jan 26, 2024
1 parent 5e84aa7 commit 9c4a222
Show file tree
Hide file tree
Showing 5 changed files with 119 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
- name: Install poetry
run: pipx install poetry==$POETRY_VERSION
- name: Install dependencies
run: poetry install
run: poetry install --with dev,lint
- name: Analysing the code with our lint
run: make lint

Expand Down
4 changes: 2 additions & 2 deletions python/langsmith/wrappers/_openai.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def patch_openai(client: C) -> C:
client.chat.completions.create = _get_wrapper( # type: ignore[method-assign]
client.chat.completions.create, "ChatOpenAI", _reduce_chat
)
client.completions.create = _get_wrapper(
client.completions.create = _get_wrapper( # type: ignore[method-assign]
client.completions.create, "OpenAI", _reduce_completions
) # type: ignore[method-assign]
)
return client
126 changes: 112 additions & 14 deletions python/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ freezegun = "^1.2.2"
pytest-subtests = "^0.11.0"
pytest-watcher = "^0.3.4"

[tool.poetry.group.lint.dependencies]
openai = "^1.10"


[build-system]
requires = ["poetry-core"]
Expand Down
2 changes: 1 addition & 1 deletion python/tests/integration_tests/wrappers/test_openai.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# mypy: disable-error-code="attr-defined, union-attr, arg-type"
# mypy: disable-error-code="attr-defined, union-attr, arg-type, call-overload"
import time
from unittest import mock

Expand Down

0 comments on commit 9c4a222

Please sign in to comment.