Parsing error when tools are enabled

#3
by bgreene010 - opened

I'm using the latest GGUF, redownloaded after issue #1 was closed.

The problem: if you send a request with at least one tool (regardless of whether the model does a tool call), and the model generates a markdown link (i.e. [link](http-colon-slash-slash-example-dot-com)), you will get an error like the one pasted below.

To replicate:

  1. Enable tools in your favorite frontend
  2. Prompt the model with "What is the format for markdown links?"

Error seen:

Failed to parse input at pos 1248: Link Text](URL)`

For example:  
`[Google](https://www.google.com)`  

This renders as clickable text "Google" linking to `https://www.google.com`. Optional variations include using underscores for the link text (e.g., `_Google_`) or adding a display name in parentheses. No tool calls are required for this explanation.

I am also having a similar error when using the web search tool in OpenWebUI. It gives me a parsing error. Not only in OpenWebUI but in other front-ends too, like Page Assist.
image

yes, i wrote parser in python, and use this model in my own chat in Python, to complicate for use this model really, but it fast and smart

Having the same problem, wondering if this is a model/template issue or runtime (llama.cpp) issue?

Sign up or log in to comment