mirror of
https://github.com/likelovewant/ollama-for-amd.git
synced 2025-12-21 14:26:30 +00:00
renderers: add global flag for setting [img] tags (#12669)
Adds a temporary global flag to renderers that causes renderers to always render images as [img]. In a follow up change, we will consider making this the default, and this flag could eventually be removed
This commit is contained in:
@@ -39,6 +39,7 @@ import (
|
||||
"github.com/ollama/ollama/logutil"
|
||||
"github.com/ollama/ollama/middleware"
|
||||
"github.com/ollama/ollama/model/parsers"
|
||||
"github.com/ollama/ollama/model/renderers"
|
||||
"github.com/ollama/ollama/server/internal/client/ollama"
|
||||
"github.com/ollama/ollama/server/internal/registry"
|
||||
"github.com/ollama/ollama/template"
|
||||
@@ -91,6 +92,9 @@ func init() {
|
||||
}
|
||||
|
||||
gin.SetMode(mode)
|
||||
|
||||
// Tell renderers to use [img] tags
|
||||
renderers.RenderImgTags = true
|
||||
}
|
||||
|
||||
var (
|
||||
|
||||
Reference in New Issue
Block a user