branch: elpa/gptel
commit a54e777e3521fe29e419fea2e39af839c1daffec
Author: Karthik Chikmagalur <[email protected]>
Commit: Karthik Chikmagalur <[email protected]>
gptel-ollama: Don't add tool call id when parsing lists
* gptel-ollama.el (gptel--parse-list): Don't add tool call ids to
list-type prompts when transforming them for Ollama.
---
gptel-ollama.el | 2 --
1 file changed, 2 deletions(-)
diff --git a/gptel-ollama.el b/gptel-ollama.el
index e712733b57..51d265d520 100644
--- a/gptel-ollama.el
+++ b/gptel-ollama.el
@@ -151,8 +151,6 @@ Store response metadata in state INFO."
(push (list :role "assistant" :content (or (car-safe msg) msg))
full-prompt))
(`(tool . ,call)
- (unless (plist-get call :id)
- (plist-put call :id (gptel--anthropic-format-tool-id nil)))
(push (list :role "assistant"
:content ""
:tool_calls `[(:function (:name ,(plist-get call :name)