Back to Localai

Chat {{ if .Model }} with {{.Model}}{{ end }}

core/http/views/chat.html

4.1.31.8 KB
Original Source

Chat Settings

Model {{ if $model }} {{ end }}

Select a model {{ range .ModelsConfig }} {{ $cfg := . }} {{ $hasMCP := or (ne $cfg.MCP.Servers "") (ne $cfg.MCP.Stdio "") }} {{ range .KnownUsecaseStrings }} {{ if eq . "FLAG_CHAT" }} {{$cfg.Name}} {{ end }} {{ end }} {{ end }} {{ range .ModelsWithoutConfig }} {{.}} {{end}}

Chats

No conversations match your search

No chats yet

MCP Mode

Non-streaming Mode

Full processing before display (may take up to 5 minutes on CPU).

System Prompt

Updated! Save Generation Parameters

Temperature

Controls randomness (0 = deterministic, 2 = very creative)

Top P

Nucleus sampling threshold (0-1)

Top K

Limit sampling to top K tokens (0 = disabled)

Chat {{ if .Model }} with {{.Model}}{{ end }}

showClearAlert = false, 3000); }" id="clear" title="Clear current chat history" class="text-[var(--color-text-secondary)] hover:text-[var(--color-primary)] transition-colors p-2 min-w-[44px] min-h-[44px] md:min-w-0 md:min-h-0 flex items-center justify-center rounded hover:bg-[var(--color-bg-secondary)]" x-show="$store.chat.activeChat() && ($store.chat.activeChat()?.history?.length || 0) > 0">

Chat history cleared successfully

Start chatting with the AI by typing a prompt in the input field below and pressing Enter.

  • For models that support images, you can upload an image by clicking the icon.
  • For models that support audio, you can upload an audio file by clicking the icon.
  • To send a text, markdown or PDF file, click the icon.

Tool Call

Tool Result

{{ if .Model }} {{ $galleryConfig:= index $allGalleryConfigs .Model}}

You

{{ else }} {{ end }}

Prompt:

Completion:

Total:

/

{{ if $model }}{{ $model }}{{ end }}

Close modal


Links

Close