fix(wxo): resolve list_llms rebase conflict with adapter seam

Keep release default-model merge behavior while preserving fetch_models_adapter usage, and update list_llms expectations in tests.
This commit is contained in:
himavarshagoutham
2026-04-14 14:01:28 -04:00
parent aab5047132
commit bef528c084
2 changed files with 3 additions and 1 deletions

View File

@ -106,6 +106,7 @@ from langflow.services.adapters.deployment.watsonx_orchestrate.payloads import (
WatsonxDeploymentCreatePayload,
WatsonxDeploymentCreateResultData,
WatsonxDeploymentLlmListResultData,
WatsonxModelOut,
WatsonxDeploymentUpdatePayload,
WatsonxDeploymentUpdateResultData,
WatsonxModelOut,
@ -305,7 +306,6 @@ class WatsonxOrchestrateDeploymentService(BaseDeploymentService):
WatsonxModelOut(model_name="groq/openai/gpt-oss-120b"),
WatsonxModelOut(model_name="bedrock/openai.gpt-oss-120b-1:0"),
]
hardcoded_names = {m.model_name for m in raw_models}
try:

View File

@ -5052,6 +5052,8 @@ async def test_list_llms_returns_normalized_model_names(monkeypatch):
assert result.provider_result == {
"models": [
{"model_name": "groq/openai/gpt-oss-120b"},
{"model_name": "bedrock/openai.gpt-oss-120b-1:0"},
{"model_name": "granite-3.1-8b"},
{"model_name": "granite-3.3-8b"},
{"model_name": "granite-3.1-8b"},