Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f613929

Browse files
committedDec 17, 2024·
fix(vertex): remove anthropic_version deletion for token counting
1 parent 45addb6 commit f613929

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed
 

‎src/anthropic/lib/vertex/_client.py

-3
Original file line numberDiff line numberDiff line change
@@ -447,9 +447,6 @@ def _prepare_options(input_options: FinalRequestOptions, *, project_id: str | No
447447
"No project_id was given and it could not be resolved from credentials. The client should be instantiated with the `project_id` argument or the `ANTHROPIC_VERTEX_PROJECT_ID` environment variable should be set."
448448
)
449449

450-
if is_dict(options.json_data):
451-
options.json_data.pop("anthropic_version", None)
452-
453450
options.url = f"/projects/{project_id}/locations/{region}/publishers/anthropic/models/count-tokens:rawPredict"
454451

455452
if options.url.startswith('/v1/messages/batches'):

0 commit comments

Comments
 (0)
Please sign in to comment.