Fix: Show MCP toggle for all models with MCP config, not just gallery models

Co-authored-by: mudler <2420543+mudler@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-11-19 22:13:39 +00:00
parent 22d8b48fd1
commit d2ed2b48a8

View File

@@ -419,8 +419,7 @@ SOFTWARE.
</template>
{{ if $model }}
{{ $galleryConfig:= index $allGalleryConfigs $model}}
{{ if $galleryConfig }}
<!-- Check for MCP configuration independently of gallery config -->
{{ $modelConfig := "" }}
{{ range .ModelsConfig }}
{{ if eq .Name $model }}
@@ -449,7 +448,6 @@ SOFTWARE.
</div>
{{ end }}
{{ end }}
{{ end }}
<button
@click="showPromptForm = !showPromptForm"