Skip to content

Conversation

@eranco74
Copy link
Collaborator

@eranco74 eranco74 commented Jul 30, 2025

Summary by CodeRabbit

  • New Features
    • Added support for the Llama Stack 2.0 Flash model, making it available for selection.
  • Refactor
    • Updated model naming to use specific versioned names for improved clarity.
    • Adjusted default model and provider settings to use the new versioned model references.
  • Chores
    • Expanded the available models list to include the new 2.0 Flash model and unified naming across configurations.

@openshift-ci openshift-ci bot requested review from carbonin and omertuc July 30, 2025 13:00
@coderabbitai
Copy link

coderabbitai bot commented Jul 30, 2025

Walkthrough

The changes update parameter names for Llama Stack models in template.yaml to use versioned identifiers, introduce a new parameter for the 2.0 flash model, and revise configuration references to use these updated names. The client configuration now explicitly lists four models, reflecting the new naming scheme and the addition of the 2.0 flash model.

Changes

Cohort / File(s) Change Summary
Parameter Renaming and Addition
template.yaml
Renamed LLAMA_STACK_DEFAULT_MODEL to LLAMA_STACK_2_5_PRO_MODEL and LLAMA_STACK_FLASH_MODEL to LLAMA_STACK_2_5_FLASH_MODEL; added LLAMA_STACK_2_0_FLASH_MODEL parameter.
ConfigMap Updates
template.yaml
Updated lightspeed-stack-config to set inference.default_model to use ${LLAMA_STACK_INFERENCE_PROVIDER}/${LLAMA_STACK_2_0_FLASH_MODEL} and inference.default_provider to ${LLAMA_STACK_INFERENCE_PROVIDER}.
Model List Expansion and Refactoring
template.yaml
Expanded llama-stack-client-config models list to four entries, adding the 2.0 flash model and updating all model references to use new versioned parameter names for model_id, provider_id, and provider_model_id.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Note

⚡️ Unit Test Generation is now available in beta!

Learn more here, or try it out under "Finishing Touches" below.

✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

‼️ IMPORTANT
Auto-reply has been disabled for this repository in the CodeRabbit settings. The CodeRabbit bot will not respond to your replies unless it is explicitly tagged.

  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai generate unit tests to generate unit tests for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@openshift-ci
Copy link

openshift-ci bot commented Jul 30, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: carbonin, eranco74

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@omertuc
Copy link
Member

omertuc commented Jul 30, 2025

/lgtm

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Nitpick comments (1)
template.yaml (1)

303-306: Model entry duplicates provider_id in provider_model_id.

provider_model_id is expected to be the provider-specific model
identifier, not a fully qualified <provider>/<model> string.
With the current value it equals model_id, defeating the separation
between “who serves” and “what is served”.

If you keep full paths in model_id, consider trimming
provider_model_id to gemini-2.0-flash (or whatever the provider
expects). Otherwise callers will have to strip the provider prefix
themselves.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between c21612e and 12d5c7c.

📒 Files selected for processing (1)
  • template.yaml (3 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: Red Hat Konflux / assisted-chat-saas-main-on-pull-request
🔇 Additional comments (2)
template.yaml (2)

78-86: Parameter values already embed the provider prefix – verify consistency.

The new 2.5-Pro / 2.5-Flash / 2.0-Flash parameters carry the full
gemini/<model> path. Down-stream code now mixes two patterns:

  • ${LLAMA_STACK_INFERENCE_PROVIDER}/${LLAMA_STACK_*_MODEL} (lines 146-147)
  • ${LLAMA_STACK_*_MODEL} alone (models list below)

This asymmetry makes it very easy to produce duplicate prefixes
(gemini/gemini/...) or mismatches if the provider is changed.

Confirm whether the intended contract is:

  1. “MODEL” parameters contain ONLY the model fragment, or
  2. They contain the full <provider>/<model> string and should be used as-is.

If #2 is correct, the expression on lines 146-147 must be simplified (see next comment).


308-310: 👍 Renaming to version-specific parameters improves clarity.

Using explicit 2.5-Pro / 2.5-Flash identifiers removes ambiguity and
will age better than generic “default/flash” names.

Also applies to: 313-315

Comment on lines +146 to +147
default_model: "${LLAMA_STACK_INFERENCE_PROVIDER}/${LLAMA_STACK_2_0_FLASH_MODEL}"
default_provider: ${LLAMA_STACK_INFERENCE_PROVIDER}
Copy link

Choose a reason for hiding this comment

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

⚠️ Potential issue

default_model builds an invalid path (gemini/gemini/...).

Because ${LLAMA_STACK_2_0_FLASH_MODEL} already starts with
gemini/, prepending ${LLAMA_STACK_INFERENCE_PROVIDER}/
duplicates the provider segment and will break routing to the model.

-        default_model: "${LLAMA_STACK_INFERENCE_PROVIDER}/${LLAMA_STACK_2_0_FLASH_MODEL}"
+        # Param already includes provider – no need to prepend it
+        default_model: "${LLAMA_STACK_2_0_FLASH_MODEL}"

Apply the same rule wherever the “MODEL” parameters are concatenated
with the provider.

📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
default_model: "${LLAMA_STACK_INFERENCE_PROVIDER}/${LLAMA_STACK_2_0_FLASH_MODEL}"
default_provider: ${LLAMA_STACK_INFERENCE_PROVIDER}
# Param already includes provider – no need to prepend it
default_model: "${LLAMA_STACK_2_0_FLASH_MODEL}"
default_provider: ${LLAMA_STACK_INFERENCE_PROVIDER}
🤖 Prompt for AI Agents
In template.yaml around lines 146 to 147, the default_model value concatenates
the provider and model variables, causing duplication of the provider segment in
the path. To fix this, remove the provider prefix from default_model and use
only the model variable since it already includes the provider segment. Apply
this correction consistently wherever model parameters are concatenated with the
provider to avoid invalid paths.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We know it's strange, we have a task for that
https://issues.redhat.com/browse/MGMT-21341

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants