Module: Amlexia
- Defined in:
- lib/amlexia.rb,
lib/amlexia/cost.rb,
lib/amlexia/health.rb,
lib/amlexia/openai.rb,
lib/amlexia/tracing.rb,
lib/amlexia/version.rb,
lib/amlexia/sampling.rb,
lib/amlexia/anthropic.rb,
lib/amlexia/http_wrap.rb,
lib/amlexia/diagnostic.rb
Defined Under Namespace
Modules: Anthropic, Cost, Health, HttpWrap, OpenAI, Sampling, Tracing Classes: DiagnosticState, TraceContext
Constant Summary collapse
- MODEL_PRICES =
{ "gpt-4o-mini" => { input: 0.15, output: 0.6 }, "gpt-4o" => { input: 2.5, output: 10 }, "claude-3-5-haiku" => { input: 0.8, output: 4 }, "claude-3-5-sonnet" => { input: 3, output: 15 }, "gemini-2.0-flash" => { input: 0.1, output: 0.4 } }.freeze
- PROVIDER_DEFAULT_MODEL =
{ "openai" => "gpt-4o-mini", "anthropic" => "claude-3-5-haiku", "google" => "gemini-2.0-flash" }.freeze
- VERSION =
"1.0.2"