Module: LlmCostTracker::Integrations::Openai::BatchesPatch

Defined in:
lib/llm_cost_tracker/integrations/openai/patches.rb

Instance Method Summary collapse

Instance Method Details

#retrieve(batch_id, *args, **kwargs) ⇒ Object



73
74
75
76
77
# File 'lib/llm_cost_tracker/integrations/openai/patches.rb', line 73

def retrieve(batch_id, *args, **kwargs)
  batch = super
  LlmCostTracker::Integrations::Openai::BatchCapture.maybe_capture(batch, resource: self)
  batch
end