Skip to content

remove provider from metadata.model so that cost lookup resolves#3

Open
Barrett Pyke (barrettpyke) wants to merge 1 commit intobraintrustdata:mainfrom
barrettpyke:fix/estimated-cost
Open

remove provider from metadata.model so that cost lookup resolves#3
Barrett Pyke (barrettpyke) wants to merge 1 commit intobraintrustdata:mainfrom
barrettpyke:fix/estimated-cost

Conversation

@barrettpyke
Copy link
Copy Markdown

@barrettpyke Barrett Pyke (barrettpyke) commented Apr 6, 2026

Description

Estimated cost is not present on traces because we prefix the provider to the front of the model name which means the model lookup doesn't resolve to gather the cost values.

Issue

Fix

Removed the prefix from metadata.model.

Testing

  • Tested adding traces with different providers (Anthropic and OpenAI)
  • Tested tool calls
  • Added unit tests for:
    • chat.message hook
    • processChatMessageRaw
    • Log file replay

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant