branch: elpa/gptel commit 4203404663b1972e47363743456fa6ca20ad21a2 Author: Karthik Chikmagalur <karthikchikmaga...@gmail.com> Commit: Karthik Chikmagalur <karthikchikmaga...@gmail.com>
gptel-openai: Fix media injection * gptel-openai.el (gptel--wrap-user-prompt): Fix injection of media into the prompt. (#527) --- gptel-openai.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gptel-openai.el b/gptel-openai.el index 4f13f7e931..66a8461449 100644 --- a/gptel-openai.el +++ b/gptel-openai.el @@ -259,7 +259,7 @@ files in the context." (string `((:type "text" :text ,current))) (vector current) (t current)))) - (plist-get (cadr prompts) :content))) + (plist-get (car prompts) :content))) ;; Wrap the last user prompt with included text contexts (cl-callf (lambda (current) (cl-etypecase current