Skip to content

Commit 96b118f

Browse files
Tonyhruleaditya1503jwmuellergordon-lim
authored
Extend TLMResponses to work for OpenAI-built-in tools (#115)
Co-authored-by: Aditya Thyagarajan <aditya1593@icloud.com> Co-authored-by: Jonas Mueller <1390638+jwmueller@users.noreply.github.com> Co-authored-by: gordon-lim <gordonlim214@gmail.com>
1 parent 3732f9e commit 96b118f

File tree

5 files changed

+1316
-296
lines changed

5 files changed

+1316
-296
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ jobs:
8383
- name: Skip tests for skip-tests tag
8484
if: steps.skip-check.outputs.skip_tests == 'true'
8585
run: echo "Skipping tests for skip tests commit tag"
86-
86+
8787
- name: Run tests with coverage
8888
if: steps.filter.outputs.code-changes == 'true' && steps.skip-check.outputs.skip_tests == 'false'
8989
run: hatch test -v --cover --include python=${{ matrix.python }}

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ extra-dependencies = [
4949
"python-dotenv",
5050
"tiktoken",
5151
"openai",
52+
"trafilatura>=1.5.0",
5253
]
5354
[tool.hatch.envs.types.scripts]
5455
check = "mypy --strict --install-types --non-interactive {args:src/cleanlab_tlm tests}"
@@ -61,6 +62,7 @@ extra-dependencies = [
6162
"pytest-asyncio",
6263
"tiktoken",
6364
"openai",
65+
"trafilatura>=1.5.0",
6466
]
6567

6668
[tool.hatch.envs.hatch-test.env-vars]

0 commit comments

Comments
 (0)