Commit 619cc74

mo khan <mo@mokhan.ca>
2026-09-07 23:25:03
chore: update provider
1 parent 42d5289
Changed files (3)
lib/elelem/anthropic/client.rb → lib/elelem/anthropic/provider.rb
@@ -2,7 +2,7 @@
 
 module Elelem
   module Anthropic
-    class Client
+    class Provider
       def initialize(endpoint:, headers:, model:, version: nil, read_timeout: 3600, open_timeout: 10)
         @uri = URI.parse(endpoint)
         @headers_source = headers
lib/elelem/anthropic/version.rb
@@ -2,6 +2,6 @@
 
 module Elelem
   module Anthropic
-    VERSION = "0.2.0"
+    VERSION = "0.2.1"
   end
 end
lib/elelem/anthropic.rb
@@ -5,13 +5,13 @@ require "json"
 require "net/http"
 require "uri"
 
+require_relative "anthropic/provider"
 require_relative "anthropic/version"
-require_relative "anthropic/client"
 
 Elelem.configure do |config|
   config.provider(:anthropic) do
     api_key = ENV.fetch("ANTHROPIC_API_KEY")
-    Elelem::Anthropic::Client.new(
+    Elelem::Anthropic::Provider.new(
       endpoint: "https://api.anthropic.com/v1/messages",
       headers: { "x-api-key" => api_key, "anthropic-version" => "2023-06-01" },
       model: ENV.fetch("ANTHROPIC_MODEL", "claude-opus-4-5-20250514")