Skip to content
This repository was archived by the owner on Oct 6, 2025. It is now read-only.

Commit 2a43e46

Browse files
committed
fix(requests): URL encode model filter parameter
Signed-off-by: Dorin Geman <[email protected]>
1 parent 5b21281 commit 2a43e46

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

desktop/desktop.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import (
99
"html"
1010
"io"
1111
"net/http"
12+
"net/url"
1213
"strconv"
1314
"strings"
1415
"time"
@@ -662,7 +663,7 @@ func (c *Client) Requests(modelFilter string, streaming bool, includeExisting bo
662663
path := c.modelRunner.URL(inference.InferencePrefix + "/requests")
663664
var queryParams []string
664665
if modelFilter != "" {
665-
queryParams = append(queryParams, "model="+modelFilter)
666+
queryParams = append(queryParams, "model="+url.QueryEscape(modelFilter))
666667
}
667668
if includeExisting && streaming {
668669
queryParams = append(queryParams, "include_existing=true")

0 commit comments

Comments
 (0)