Skip to content

Commit cbd20c3

Browse files
fix(deps): update dependency openai to v3 (#2790)
* fix(deps): update dependency openai to v3 * fix(llm): support OpenAI cache write usage * chore(deps): refresh third-party notices * chore(deps): align notices with CI --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Kevin Messiaen <114553769+kevinmessiaen@users.noreply.github.com>
1 parent 9dabbbf commit cbd20c3

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

THIRD_PARTY_NOTICES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ Find a list of packages below
458458
- License: 0BSD;; BSD-3-Clause;; CC0-1.0;; MIT;; Zlib
459459
- Compatible: True
460460

461-
### openai-2.43.0
461+
### openai-2.54.0
462462

463463
- HomePage:
464464
- Author: OpenAI

libs/giskard-llm/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ dependencies = [
1212
]
1313

1414
[project.optional-dependencies]
15-
openai = ["openai>=1.30,<3"]
15+
openai = ["openai>=1.30,<4"]
1616
google = ["google-genai>=2.0,<3"]
1717
anthropic = ["anthropic>=0.40,<1"]
1818
azure = ["giskard-llm[openai]"] # alias: azure/ and azure_ai/ use the openai SDK

libs/giskard-llm/tests/translators/test_openai_response_return.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
def _usage(input_tokens: int, output_tokens: int, total_tokens: int) -> ResponseUsage:
4242
return ResponseUsage(
4343
input_tokens=input_tokens,
44-
input_tokens_details=InputTokensDetails(cached_tokens=0),
44+
input_tokens_details=InputTokensDetails(cached_tokens=0, cache_write_tokens=0),
4545
output_tokens=output_tokens,
4646
output_tokens_details=OutputTokensDetails(reasoning_tokens=0),
4747
total_tokens=total_tokens,

uv.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)