fix(llmobs): set default model provider to unknown in openai and anthropic#7913
fix(llmobs): set default model provider to unknown in openai and anthropic#7913
Conversation
Overall package sizeSelf size: 5.45 MB Dependency sizes| name | version | self size | total size | |------|---------|-----------|------------| | import-in-the-middle | 3.0.0 | 81.15 kB | 815.98 kB | | dc-polyfill | 0.1.10 | 26.73 kB | 26.73 kB |🤖 This report was automatically generated by heaviest-objects-in-the-universe |
|
✅ Tests 🎉 All green!❄️ No new flaky tests detected 🎯 Code Coverage (details) 🔗 Commit SHA: 54511a0 | Docs | Datadog PR Page | Was this helpful? React with 👍/👎 or give us feedback! |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #7913 +/- ##
==========================================
+ Coverage 74.26% 74.27% +0.01%
==========================================
Files 765 765
Lines 35786 35793 +7
==========================================
+ Hits 26575 26585 +10
+ Misses 9211 9208 -3 Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
also, since this is a fix, i've applied the |
…ropic (#7913) * set default model provider to unknown in openai and anthropic * update comments * lint
…ropic (#7913) * set default model provider to unknown in openai and anthropic * update comments * lint
What does this PR do?
Defaults model_provider to
unknownwhen a custom base URL is configured that does not match a recognized provider in the OpenAI and Anthropic integrationsBefore changes: when a custom base_url is configured, the model_provider is hardcode as
openaiandanthropic.After changes: returns model name


unknown.Motivation
This is to prevent incorrect model provider when using openai/anthropic SDK as a AI proxy or gateway.
MLOB-6960
Additional Notes