mirror of
https://github.com/zebrajr/ollama.git
synced 2025-12-06 12:19:56 +01:00
model/parsers: remove warning for missing <think> tag for qwen3-vl (#12713)
This commit is contained in:
parent
5d22953ba7
commit
94f110b35a
|
|
@ -181,9 +181,6 @@ func (p *Qwen3VLParser) eat() ([]qwenEvent, bool) {
|
||||||
split := strings.SplitN(p.buffer.String(), thinkingCloseTag, 2)
|
split := strings.SplitN(p.buffer.String(), thinkingCloseTag, 2)
|
||||||
// before := split[0]
|
// before := split[0]
|
||||||
before := strings.TrimRightFunc(split[0], unicode.IsSpace)
|
before := strings.TrimRightFunc(split[0], unicode.IsSpace)
|
||||||
if len(before) == 0 {
|
|
||||||
slog.Warn("qwen tool call closing tag found but no content before it")
|
|
||||||
}
|
|
||||||
after := strings.TrimLeftFunc(split[1], unicode.IsSpace)
|
after := strings.TrimLeftFunc(split[1], unicode.IsSpace)
|
||||||
if len(before) > 0 {
|
if len(before) > 0 {
|
||||||
events = append(events, qwenEventThinkingContent{content: before})
|
events = append(events, qwenEventThinkingContent{content: before})
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user