From fe903c535211bdbeeb703e06db0da3f7c8c19b4b Mon Sep 17 00:00:00 2001 From: LLLL Colonq Date: Tue, 16 Sep 2025 01:33:43 -0400 Subject: Update --- src/wasp-ai.el | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) (limited to 'src/wasp-ai.el') diff --git a/src/wasp-ai.el b/src/wasp-ai.el index 15fa8f47..2c696c56 100644 --- a/src/wasp-ai.el +++ b/src/wasp-ai.el @@ -59,25 +59,25 @@ (defun w/ai-openai-post-form (loc files k) "Post FILES to LOC at the OpenAI API, passing the returned JSON to K." (setf request-message-level -1) - (request - (s-concat w/ai-openai-server loc) - :type "POST" - :files files - :headers - `(("Authorization" . ,(s-concat "Bearer " w/sensitive-openai-api-key)) - ("Content-Type" . "multipart/form-data")) - :parser #'json-parse-buffer - :error - (cl-function - (lambda (&key data error-thrown &allow-other-keys) - (setq w/ai-openai-last-response data) - (setq w/ai-openai-last-error data) - (message "OpenAI API returned an error - investigate this! :3 %s" error-thrown))) - :success - (cl-function - (lambda (&key data &allow-other-keys) - (setq w/ai-openai-last-response data) - (funcall k data)))) + ;; (request + ;; (s-concat w/ai-openai-server loc) + ;; :type "POST" + ;; :files files + ;; :headers + ;; `(("Authorization" . ,(s-concat "Bearer " w/sensitive-openai-api-key)) + ;; ("Content-Type" . "multipart/form-data")) + ;; :parser #'json-parse-buffer + ;; :error + ;; (cl-function + ;; (lambda (&key data error-thrown &allow-other-keys) + ;; (setq w/ai-openai-last-response data) + ;; (setq w/ai-openai-last-error data) + ;; (message "OpenAI API returned an error - investigate this! :3 %s" error-thrown))) + ;; :success + ;; (cl-function + ;; (lambda (&key data &allow-other-keys) + ;; (setq w/ai-openai-last-response data) + ;; (funcall k data)))) t) (defvar-local w/ai-callback nil) -- cgit v1.2.3