feat(site): infer model family icon from model name in AI Bridge logs by ssncferreira · Pull Request #22022 · coder/coder
Problem
Previously, the AI Bridge model column icon was derived from the provider field. This worked because each provider only served its own models: OpenAI interceptions always used OpenAI models, and Anthropic interceptions always used Anthropic models.
With the introduction of the Copilot provider, this assumption no longer holds. Copilot can forward requests to both OpenAI and Anthropic models, so the provider field alone is not enough to determine the correct model icon. This caused Copilot interceptions to display a fallback question mark icon for the model.
Changes
- Added
AIBridgeModelIconcomponent that infers the model family (Claude, OpenAI) from the model name string and renders the appropriate icon. - Updated
RequestLogsRowto useAIBridgeModelIconinstead ofAIBridgeProviderIconin both the table row and the expanded detail view.
