Proposal summary
Opik allows spans to tag provider -- but this is never used to populate the formatHint field used during rendering in practice, so detection order is always fixed.
Motivation
Adding support for Anthropic is my primary relevant goal. In most cases, it's possible to disambiguate OpenAI and Anthropic wire formats -- but there are corner cases where neither detector can give an authoritative answer.
Honoring the metadata that's already collected at ingestion time to set a preference is a sensible resolution to this conundrum.
Proposal summary
Opik allows spans to tag
provider-- but this is never used to populate theformatHintfield used during rendering in practice, so detection order is always fixed.Motivation
Adding support for Anthropic is my primary relevant goal. In most cases, it's possible to disambiguate OpenAI and Anthropic wire formats -- but there are corner cases where neither detector can give an authoritative answer.
Honoring the metadata that's already collected at ingestion time to set a preference is a sensible resolution to this conundrum.