Module: Verica::Providers
- Defined in:
- lib/verica/providers.rb
Overview
Infers Verica's canonical provider from an OpenAI-shaped model name, so a single OpenAI-compatible client (ruby-openai) traces Gemini and Anthropic calls with the right provider label. Default openai (these are OpenAI-shaped clients).
Class Method Summary collapse
Class Method Details
.for_model(model) ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/verica/providers.rb', line 9 def self.for_model(model) m = model.to_s.downcase return 'google' if m.start_with?('gemini') return 'anthropic' if m.start_with?('claude') 'openai' end |