Commit c326f21

mo khan <mo@mokhan.ca>
2026-03-11 21:24:48
refactor: inline usage of Claude.vertex
1 parent d33aa91
Changed files (1)
lib
lib/elelem/anthropic.rb
@@ -3,16 +3,6 @@
 module Elelem
   module Net
     class Claude
-      def self.vertex(model:, project:, region: "us-east5", http: Elelem::Net.http)
-        new(
-          endpoint: "https://#{region}-aiplatform.googleapis.com/v1/projects/#{project}/locations/#{region}/publishers/anthropic/models/#{model}:rawPredict",
-          headers: -> { { "Authorization" => "Bearer #{`gcloud auth application-default print-access-token`.strip}" } },
-          model:,
-          version: "vertex-2023-10-16",
-          http:
-        )
-      end
-
       def initialize(endpoint:, headers:, model:, version: nil, http: Elelem::Net.http)
         @endpoint = endpoint
         @headers_source = headers