Skip to content

Add price, input_price, price_unit, pricing_model, model_class fields… in FoundationModel#1275

Open
lbruand-db wants to merge 2 commits intodatabricks:mainfrom
lbruand-db:feat_price_access_foundation_model
Open

Add price, input_price, price_unit, pricing_model, model_class fields… in FoundationModel#1275
lbruand-db wants to merge 2 commits intodatabricks:mainfrom
lbruand-db:feat_price_access_foundation_model

Conversation

@lbruand-db
Copy link

What changes are proposed in this pull request?

  • What: Add extra price, input_price, price_unit, pricing_model, model_class fields that are provided for some model by the REST API
  • why: This is the only way to have access to the price of FM.
    Specifically, try to answer the two following questions:

How is this tested?

Added an extra unit test.

… to FoundationModel serde

The FoundationModel dataclass had these fields defined but they were missing
from as_dict(), as_shallow_dict(), and from_dict() methods.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@lbruand-db lbruand-db changed the title Add price, input_price, price_unit, pricing_model, model_class fields… Add price, input_price, price_unit, pricing_model, model_class fields… in FoundationModel Feb 19, 2026
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions
Copy link

If integration tests don't run automatically, an authorized user can run them manually by following the instructions below:

Trigger:
go/deco-tests-run/sdk-py

Inputs:

  • PR number: 1275
  • Commit SHA: 8dc0494a9c2865f82a2673e6066749a8549c4fbb

Checks will be approved automatically on success.

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