mirror of
https://github.com/mudler/LocalAI
synced 2026-04-21 13:27:21 +00:00
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:
parent
22d8b48fd1
commit
d2ed2b48a8
1 changed files with 1 additions and 3 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue