Module: Foam::Otel::LLM::AnthropicShim::MessagesPatch
- Defined in:
- lib/foam/otel/llm/anthropic_shim.rb
Instance Method Summary collapse
Instance Method Details
#create(params) ⇒ Object
73 74 75 76 77 78 79 |
# File 'lib/foam/otel/llm/anthropic_shim.rb', line 73 def create(params) Foam::Otel::LLM.observe( provider: "anthropic", request: Foam::Otel::LLM.safe_request(provider: "anthropic") { AnthropicShim.request(params) }, response_extractor: AnthropicShim::RESPONSE ) { super(params) } end |