Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update LLM provider SDK npm packages #5038

Merged
merged 3 commits into from
Dec 16, 2024

Conversation

hash-worker[bot]
Copy link
Contributor

@hash-worker hash-worker bot commented Sep 10, 2024

This PR contains the following updates:

Package Type Update Change
@anthropic-ai/bedrock-sdk dependencies minor 0.10.0 -> 0.11.2
@anthropic-ai/sdk dependencies minor 0.24.0 -> 0.32.1

Release Notes

anthropics/anthropic-sdk-typescript (@​anthropic-ai/bedrock-sdk)

v0.11.0

Full Changelog: v0.10.2...v0.11.0

Features
  • api: add messages endpoint with streaming helpers (#​235) (12b914f)
  • client: support reading the base url from an env variable (#​223) (5bc3600)
Chores
Documentation
Build System

v0.10.2

Compare Source

Full Changelog: v0.10.1...v0.10.2

v0.10.1

Compare Source

Full Changelog: v0.10.0...v0.10.1

Chores
  • internal: remove file import and conditionally run prepare (#​217) (8ac5c7a)

Configuration

📅 Schedule: Branch creation - "after 1am" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

hashdotai
hashdotai previously approved these changes Sep 10, 2024
hashdotai
hashdotai previously approved these changes Oct 4, 2024
hashdotai
hashdotai previously approved these changes Oct 8, 2024
@hash-worker hash-worker bot force-pushed the deps/js/llm-provider-sdk-npm-packages branch from 72e9ed6 to 885e8dd Compare November 28, 2024 14:11
hashdotai
hashdotai previously approved these changes Nov 28, 2024
hashdotai
hashdotai previously approved these changes Dec 5, 2024
@hash-worker hash-worker bot force-pushed the deps/js/llm-provider-sdk-npm-packages branch from 9cc9d64 to eeef70b Compare December 12, 2024 08:13
hashdotai
hashdotai previously approved these changes Dec 12, 2024
Copy link

codecov bot commented Dec 16, 2024

Codecov Report

Attention: Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.

Project coverage is 22.89%. Comparing base (c6d0d1c) to head (b9a7b2e).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
.../activities/shared/get-llm-response/llm-message.ts 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5038      +/-   ##
==========================================
+ Coverage   22.86%   22.89%   +0.02%     
==========================================
  Files         573      569       -4     
  Lines       19445    19195     -250     
  Branches     2754     2724      -30     
==========================================
- Hits         4447     4394      -53     
+ Misses      14945    14748     -197     
  Partials       53       53              
Flag Coverage Δ
apps.hash-ai-worker-ts 1.32% <0.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@hash-worker
Copy link
Contributor Author

hash-worker bot commented Dec 16, 2024

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

@CiaranMn CiaranMn added this pull request to the merge queue Dec 16, 2024
Merged via the queue into main with commit 63bdf40 Dec 16, 2024
165 checks passed
@CiaranMn CiaranMn deleted the deps/js/llm-provider-sdk-npm-packages branch December 16, 2024 13:33
Copy link
Contributor

Benchmark results

@rust/hash-graph-benches – Integrations

representative_read_entity

Function Value Mean Flame graphs
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/playlist/v/1 $$16.8 \mathrm{ms} \pm 188 \mathrm{μs}\left({\color{lightgreen}-30.079 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/person/v/1 $$17.1 \mathrm{ms} \pm 190 \mathrm{μs}\left({\color{red}6.04 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/organization/v/1 $$16.3 \mathrm{ms} \pm 167 \mathrm{μs}\left({\color{lightgreen}-10.267 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/page/v/2 $$16.8 \mathrm{ms} \pm 200 \mathrm{μs}\left({\color{red}6.67 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/song/v/1 $$16.6 \mathrm{ms} \pm 229 \mathrm{μs}\left({\color{gray}-0.582 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/block/v/1 $$16.6 \mathrm{ms} \pm 231 \mathrm{μs}\left({\color{gray}-3.711 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/book/v/1 $$17.1 \mathrm{ms} \pm 207 \mathrm{μs}\left({\color{gray}4.75 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/building/v/1 $$17.1 \mathrm{ms} \pm 183 \mathrm{μs}\left({\color{lightgreen}-29.575 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/uk-address/v/1 $$16.6 \mathrm{ms} \pm 174 \mathrm{μs}\left({\color{lightgreen}-22.796 \mathrm{\%}}\right) $$ Flame Graph

representative_read_multiple_entities

Function Value Mean Flame graphs
entity_by_property depths: DT=255, PT=255, ET=255, E=255 $$69.5 \mathrm{ms} \pm 334 \mathrm{μs}\left({\color{gray}0.244 \mathrm{\%}}\right) $$ Flame Graph
entity_by_property depths: DT=0, PT=0, ET=0, E=0 $$42.2 \mathrm{ms} \pm 182 \mathrm{μs}\left({\color{gray}-0.083 \mathrm{\%}}\right) $$ Flame Graph
entity_by_property depths: DT=2, PT=2, ET=2, E=2 $$60.2 \mathrm{ms} \pm 282 \mathrm{μs}\left({\color{gray}0.068 \mathrm{\%}}\right) $$ Flame Graph
entity_by_property depths: DT=0, PT=0, ET=0, E=2 $$46.2 \mathrm{ms} \pm 132 \mathrm{μs}\left({\color{gray}-0.961 \mathrm{\%}}\right) $$ Flame Graph
entity_by_property depths: DT=0, PT=0, ET=2, E=2 $$52.1 \mathrm{ms} \pm 226 \mathrm{μs}\left({\color{gray}-1.162 \mathrm{\%}}\right) $$ Flame Graph
entity_by_property depths: DT=0, PT=2, ET=2, E=2 $$56.6 \mathrm{ms} \pm 291 \mathrm{μs}\left({\color{gray}-1.506 \mathrm{\%}}\right) $$ Flame Graph
link_by_source_by_property depths: DT=255, PT=255, ET=255, E=255 $$106 \mathrm{ms} \pm 419 \mathrm{μs}\left({\color{gray}-0.783 \mathrm{\%}}\right) $$ Flame Graph
link_by_source_by_property depths: DT=0, PT=0, ET=0, E=0 $$42.0 \mathrm{ms} \pm 173 \mathrm{μs}\left({\color{gray}-0.706 \mathrm{\%}}\right) $$ Flame Graph
link_by_source_by_property depths: DT=2, PT=2, ET=2, E=2 $$98.5 \mathrm{ms} \pm 415 \mathrm{μs}\left({\color{gray}0.329 \mathrm{\%}}\right) $$ Flame Graph
link_by_source_by_property depths: DT=0, PT=0, ET=0, E=2 $$81.7 \mathrm{ms} \pm 396 \mathrm{μs}\left({\color{gray}-0.580 \mathrm{\%}}\right) $$ Flame Graph
link_by_source_by_property depths: DT=0, PT=0, ET=2, E=2 $$89.6 \mathrm{ms} \pm 295 \mathrm{μs}\left({\color{gray}-0.174 \mathrm{\%}}\right) $$ Flame Graph
link_by_source_by_property depths: DT=0, PT=2, ET=2, E=2 $$94.5 \mathrm{ms} \pm 500 \mathrm{μs}\left({\color{gray}0.132 \mathrm{\%}}\right) $$ Flame Graph

representative_read_entity_type

Function Value Mean Flame graphs
get_entity_type_by_id Account ID: d4e16033-c281-4cde-aa35-9085bf2e7579 $$2.14 \mathrm{ms} \pm 13.6 \mathrm{μs}\left({\color{gray}0.065 \mathrm{\%}}\right) $$ Flame Graph

scaling_read_entity_complete_one_depth

Function Value Mean Flame graphs
entity_by_id 50 entities $$5.40 \mathrm{s} \pm 541 \mathrm{ms}\left({\color{gray}-4.200 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 5 entities $$27.1 \mathrm{ms} \pm 279 \mathrm{μs}\left({\color{gray}1.21 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 1 entities $$20.7 \mathrm{ms} \pm 103 \mathrm{μs}\left({\color{gray}0.204 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 10 entities $$57.1 \mathrm{ms} \pm 179 \mathrm{μs}\left({\color{gray}0.475 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 25 entities $$84.5 \mathrm{ms} \pm 378 \mathrm{μs}\left({\color{lightgreen}-52.718 \mathrm{\%}}\right) $$ Flame Graph

scaling_read_entity_linkless

Function Value Mean Flame graphs
entity_by_id 1 entities $$1.95 \mathrm{ms} \pm 6.91 \mathrm{μs}\left({\color{gray}0.030 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 100 entities $$2.17 \mathrm{ms} \pm 7.81 \mathrm{μs}\left({\color{gray}0.792 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 10 entities $$1.96 \mathrm{ms} \pm 5.72 \mathrm{μs}\left({\color{gray}-0.228 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 1000 entities $$2.90 \mathrm{ms} \pm 14.5 \mathrm{μs}\left({\color{gray}-2.154 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 10000 entities $$9.80 \mathrm{ms} \pm 137 \mathrm{μs}\left({\color{lightgreen}-29.147 \mathrm{\%}}\right) $$ Flame Graph

scaling_read_entity_complete_zero_depth

Function Value Mean Flame graphs
entity_by_id 50 entities $$4.06 \mathrm{ms} \pm 15.9 \mathrm{μs}\left({\color{gray}0.351 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 5 entities $$1.95 \mathrm{ms} \pm 12.1 \mathrm{μs}\left({\color{gray}-1.490 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 1 entities $$1.95 \mathrm{ms} \pm 11.1 \mathrm{μs}\left({\color{gray}-0.359 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 10 entities $$2.07 \mathrm{ms} \pm 9.58 \mathrm{μs}\left({\color{gray}-3.507 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 25 entities $$3.31 \mathrm{ms} \pm 18.5 \mathrm{μs}\left({\color{red}21.3 \mathrm{\%}}\right) $$ Flame Graph

CiaranMn added a commit that referenced this pull request Jan 13, 2025
Co-authored-by: hash-worker[bot] <180894564+hash-worker[bot]@users.noreply.github.com>
Co-authored-by: Ciaran Morinan <c@hash.ai>
Co-authored-by: Ciaran Morinan <37743469+CiaranMn@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/apps > hash* Affects HASH (a `hash-*` app) area/apps area/deps Relates to third-party dependencies (area)
Development

Successfully merging this pull request may close these issues.

2 participants