From cab801d9601056de676cb63309ea634f49437917 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20F=2E=20R=C3=B8dseth?= Date: Tue, 12 Nov 2024 10:32:15 +0100 Subject: [PATCH] Add a comment --- v2/ollamaclient.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/v2/ollamaclient.go b/v2/ollamaclient.go index 55154f2..d77de26 100644 --- a/v2/ollamaclient.go +++ b/v2/ollamaclient.go @@ -251,6 +251,8 @@ func (oc *Config) GetChatResponse(promptAndOptionalImages ...string) (OutputResp return res, nil } +// GetOutputChatVision sends a request to the Ollama API and returns the generated response. +// It is similar to GetChatResponse, but it adds the images into the Message struct before sending them. func (oc *Config) GetOutputChatVision(promptAndOptionalImages ...string) (string, error) { var ( temperature float64