Skip to content

Fix code snippet to use format instead of format_messages method#21142

Merged
harupy merged 1 commit intomlflow:masterfrom
EPgg92:doc/fix_promptcontentpreview_format_messages
Feb 25, 2026
Merged

Fix code snippet to use format instead of format_messages method#21142
harupy merged 1 commit intomlflow:masterfrom
EPgg92:doc/fix_promptcontentpreview_format_messages

Conversation

@EPgg92
Copy link
Contributor

@EPgg92 EPgg92 commented Feb 25, 2026

Related Issues/PRs

Fix #21141

What changes are proposed in this pull request?

How is this PR tested?

  • Existing unit/integration tests
  • New unit/integration tests
  • Manual tests

Does this PR require documentation update?

  • No. You can skip the rest of this section.
  • Yes. I've updated:
    • Examples
    • API references
    • Instructions

Does this PR require updating the MLflow Skills repository?

  • No. You can skip the rest of this section.
  • Yes. Please link the corresponding PR or explain how you plan to update it.

Release Notes

Is this a user-facing change?

  • No. You can skip the rest of this section.
  • Yes. Give a description of this change to be included in the release notes for MLflow users.

Now it will provide an existing method inside the code snippet proposed.

What component(s), interfaces, languages, and integrations does this PR affect?

Components

  • area/tracking: Tracking Service, tracking client APIs, autologging
  • area/models: MLmodel format, model serialization/deserialization, flavors
  • area/model-registry: Model Registry service, APIs, and the fluent client calls for Model Registry
  • area/scoring: MLflow Model server, model deployment tools, Spark UDFs
  • area/evaluation: MLflow model evaluation features, evaluation metrics, and evaluation workflows
  • area/gateway: MLflow AI Gateway client APIs, server, and third-party integrations
  • area/prompts: MLflow prompt engineering features, prompt templates, and prompt management
  • area/tracing: MLflow Tracing features, tracing APIs, and LLM tracing functionality
  • area/projects: MLproject format, project running backends
  • area/uiux: Front-end, user experience, plotting, JavaScript, JavaScript dev server
  • area/build: Build and test infrastructure for MLflow
  • area/docs: MLflow documentation pages

How should the PR be classified in the release notes? Choose one:

  • rn/none - No description will be included. The PR will be mentioned only by the PR number in the "Small Bugfixes and Documentation Updates" section
  • rn/breaking-change - The PR will be mentioned in the "Breaking Changes" section
  • rn/feature - A new user-facing feature worth mentioning in the release notes
  • rn/bug-fix - A user-facing bug fix worth mentioning in the release notes
  • rn/documentation - A user-facing documentation change worth mentioning in the release notes

Should this PR be included in the next patch release?

Yes should be selected for bug fixes, documentation updates, and other small changes. No should be selected for new features and larger changes. If you're unsure about the release classification of this PR, leave this unchecked to let the maintainers decide.

Fix none existing method in PromptContentPreview
  • Patch release: Just switch method from format_messages to format
  • Yes (this PR will be cherry-picked and included in the next patch release)
  • No (this PR will be included in the next minor release)

@github-actions github-actions bot added community Community/external contribution size/XS labels Feb 25, 2026
@github-actions
Copy link
Contributor

🛠 DevTools 🛠

Install mlflow from this PR

# mlflow
pip install git+https://github.com/mlflow/mlflow.git@refs/pull/21142/merge
# mlflow-skinny
pip install git+https://github.com/mlflow/mlflow.git@refs/pull/21142/merge#subdirectory=libs/skinny

For Databricks, use the following command:

%sh curl -LsSf https://raw.githubusercontent.com/mlflow/mlflow/HEAD/dev/install-skinny.sh | sh -s pull/21142/merge

@github-actions github-actions bot added the rn/none List under Small Changes in Changelogs. label Feb 25, 2026
@github-actions
Copy link
Contributor

@EPgg92 Thank you for the contribution! Could you fix the following issue(s)?

⚠ DCO check

The DCO check failed. Please sign off your commit(s) by following the instructions here. See https://github.com/mlflow/mlflow/blob/master/CONTRIBUTING.md#sign-your-work for more details.

Signed-off-by: Enzo Poggio <poggio.enzo@gmail.com>
@EPgg92 EPgg92 force-pushed the doc/fix_promptcontentpreview_format_messages branch from 365ebf6 to c1f49d0 Compare February 25, 2026 22:53
@github-actions
Copy link
Contributor

Documentation preview for c1f49d0 is available at:

More info
  • Ignore this comment if this PR does not change the documentation.
  • The preview is updated when a new commit is pushed to this PR.
  • This comment was created by this workflow run.
  • The documentation was built by this workflow run.

@harupy
Copy link
Member

harupy commented Feb 25, 2026

/title

@github-actions github-actions bot changed the title s/format_messages/format/ Fix code snippet to use format instead of format_messages method Feb 25, 2026
Copy link
Member

@harupy harupy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@harupy harupy added this pull request to the merge queue Feb 25, 2026
Merged via the queue into mlflow:master with commit d96abce Feb 25, 2026
27 of 29 checks passed
daniellok-db pushed a commit to daniellok-db/mlflow that referenced this pull request Mar 5, 2026
…lflow#21142)

Signed-off-by: Enzo Poggio <poggio.enzo@gmail.com>
daniellok-db pushed a commit to daniellok-db/mlflow that referenced this pull request Mar 5, 2026
…lflow#21142)

Signed-off-by: Enzo Poggio <poggio.enzo@gmail.com>
daniellok-db pushed a commit that referenced this pull request Mar 5, 2026
…21142)

Signed-off-by: Enzo Poggio <poggio.enzo@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community Community/external contribution rn/none List under Small Changes in Changelogs. size/XS v3.10.1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[DOC-FIX] Code snippet proposing not existing method

2 participants