Commit 9895565
Changed files (4)
lib
net
lib/net/llm/anthropic.rb
@@ -5,7 +5,7 @@ module Net
class Anthropic
attr_reader :api_key, :model
- def initialize(api_key: ENV.fetch("ANTHROPIC_API_KEY"), model: ENV.fetch("ANTHROPIC_MODEL", "claude-sonnet-4-20250514"), http: Net::Llm.http)
+ def initialize(api_key: ENV.fetch("ANTHROPIC_API_KEY"), model: "claude-sonnet-4-20250514", http: Net::Llm.http)
@api_key = api_key
@model = model
@claude = Claude.new(
lib/net/llm/ollama.rb
@@ -5,7 +5,7 @@ module Net
class Ollama
attr_reader :host, :model, :http
- def initialize(host: ENV.fetch("OLLAMA_HOST", "localhost:11434"), model: ENV.fetch("OLLAMA_MODEL", "gpt-oss"), http: Net::Llm.http)
+ def initialize(host: ENV.fetch("OLLAMA_HOST", "localhost:11434"), model: "gpt-oss", http: Net::Llm.http)
@host = host
@model = model
@http = http
lib/net/llm/openai.rb
@@ -5,7 +5,7 @@ module Net
class OpenAI
attr_reader :api_key, :base_url, :model, :http
- def initialize(api_key: ENV.fetch("OPENAI_API_KEY"), base_url: ENV.fetch("OPENAI_BASE_URL", "https://api.openai.com/v1"), model: ENV.fetch("OPENAI_MODEL", "gpt-4o-mini"), http: Net::Llm.http)
+ def initialize(api_key: ENV.fetch("OPENAI_API_KEY"), base_url: ENV.fetch("OPENAI_BASE_URL", "https://api.openai.com/v1"), model: "gpt-4o-mini", http: Net::Llm.http)
@api_key = api_key
@base_url = base_url
@model = model
lib/net/llm/vertex_ai.rb
@@ -5,7 +5,7 @@ module Net
class VertexAI
attr_reader :project_id, :region, :model
- def initialize(project_id: ENV.fetch("GOOGLE_CLOUD_PROJECT"), region: ENV.fetch("GOOGLE_CLOUD_REGION", "us-east5"), model: ENV.fetch("VERTEX_AI_MODEL", "claude-opus-4-5@20251101"), http: Net::Llm.http)
+ def initialize(project_id: ENV.fetch("GOOGLE_CLOUD_PROJECT"), region: ENV.fetch("GOOGLE_CLOUD_REGION", "us-east5"), model: "claude-sonnet-4-20250514", http: Net::Llm.http)
@project_id = project_id
@region = region
@model = model