Skip to content

Commit

Permalink
fix(vertex): remove anthropic_version deletion for token counting
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertCraigie committed Dec 17, 2024
1 parent 92aa351 commit 15987ac
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions vertex/vertex.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,6 @@ func vertexMiddleware(region, projectID string) sdkoption.Middleware {
return nil, fmt.Errorf("no projectId was given and it could not be resolved from credentials")
}

body, _ = sjson.DeleteBytes(body, "anthropic_version")

r.URL.Path = fmt.Sprintf("/v1/projects/%s/locations/%s/publishers/anthropic/models/count-tokens:rawPredict", projectID, region)
}

Expand Down

0 comments on commit 15987ac

Please # to comment.