From caac1d397ad8e21c22219708c070e5e6608b7859 Mon Sep 17 00:00:00 2001 From: Grail Finder Date: Mon, 2 Mar 2026 07:12:28 +0300 Subject: Feat: read img tool for chat endpoint --- models/models.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'models/models.go') diff --git a/models/models.go b/models/models.go index a35f16c..973eb3d 100644 --- a/models/models.go +++ b/models/models.go @@ -391,7 +391,6 @@ func CreateImageURLFromPath(imagePath string) (string, error) { if err != nil { return "", err } - // Determine the image format based on file extension var mimeType string switch { @@ -408,10 +407,8 @@ func CreateImageURLFromPath(imagePath string) (string, error) { default: mimeType = "image/jpeg" // default } - // Encode to base64 encoded := base64.StdEncoding.EncodeToString(data) - // Create data URL return fmt.Sprintf("data:%s;base64,%s", mimeType, encoded), nil } @@ -623,3 +620,8 @@ type ChatRoundReq struct { Regen bool Resume bool } + +type MultimodalToolResp struct { + Type string `json:"type"` + Parts []map[string]string `json:"parts"` +} -- cgit v1.2.3