summaryrefslogtreecommitdiff
path: root/src/wasp-ai.el
diff options
context:
space:
mode:
authorLLLL Colonq <llll@colonq>2025-09-16 01:33:43 -0400
committerLLLL Colonq <llll@colonq>2025-09-16 01:33:43 -0400
commitfe903c535211bdbeeb703e06db0da3f7c8c19b4b (patch)
tree66c383a14eb92f61df32f2407719a761e4c2ed16 /src/wasp-ai.el
parent9dec5e4d54ecbfb84ef8eba727b44bb6435f6e40 (diff)
Update
Diffstat (limited to 'src/wasp-ai.el')
-rw-r--r--src/wasp-ai.el38
1 files changed, 19 insertions, 19 deletions
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)