Skip to content

Conversation

@mahiro72
Copy link
Contributor

@mahiro72 mahiro72 commented Dec 5, 2025

Summary

  • Add provider_url field to ModelResponse to store the provider's API endpoint URL
  • Pass provider_url to calc_price() as provider_api_url for more accurate pricing calculations
  • Add provider_url abstract property to StreamedResponse and implement it in all subclasses

Closes #3608

@mahiro72 mahiro72 marked this pull request as ready for review December 7, 2025 16:32
@DouweM DouweM requested a review from alexmojaki December 9, 2025 22:06
@mahiro72 mahiro72 requested a review from alexmojaki December 11, 2025 10:34
@alexmojaki
Copy link
Contributor

Thanks!

@alexmojaki alexmojaki merged commit ba58119 into pydantic:main Dec 11, 2025
32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants