Skip to content

Commit

Permalink
test: add requests dependency to the anthropic remote function (#1137)
Browse files Browse the repository at this point in the history
* test: add `requests` dependecy to the anthropic remote function

The latest anthropic release broke the notebook tests. More details in
anthropics/anthropic-sdk-python#738.

* fix tupo
  • Loading branch information
shobsi authored Nov 7, 2024
1 parent a38d4c4 commit 0dea941
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,8 @@
}
],
"source": [
"@bpd.remote_function(packages=[\"anthropic[vertex]\"], max_batching_rows=1, \n",
"@bpd.remote_function(packages=[\"anthropic[vertex]\", \"google-auth[requests]\"],\n",
" max_batching_rows=1, \n",
" bigquery_connection=\"bigframes-dev.us-east5.bigframes-rf-conn\") # replace with your connection\n",
"def anthropic_transformer(message: str) -> str:\n",
" from anthropic import AnthropicVertex\n",
Expand Down

0 comments on commit 0dea941

Please sign in to comment.