Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Readme

First attemp to pursude the beautiful of AI

Some questions

  • [ ] Does machine have knowledge?
  • [ ] Does machine can think?
  • [ ] Did they really know that they exist
  • [ ] Does machine have soul?
  • [ ] Does machine can understand the emojis they are using?
  • [ ] My collections on study AI, true AI
(defun vermin/send-string-to-openai (prompt &optional system-message)
  (let ((url-request-method "POST")
        (endpoint "http://localhost:8080/v1/chat/completions")

        (url-request-data
         (json-encode
          `(("messages" . ((("role" . "system")
                            ("content" . ,(or system-message "You are assistant that always explain clearly your answer in mathematical style")))
                           (("role" . "user")
                            ("content" . ,prompt))))))))
    (with-current-buffer (url-retrieve-synchronously endpoint)
      (goto-char url-http-end-of-headers)
      (cdr
       (assoc 'content
              (assoc 'message
                     (aref (cdr (assoc 'choices (json-parse-buffer
                                                 :object-type 'alist))) 0))))
      )
    )
  )
(vermin/send-string-to-openai "Did you actually exist")
Existence can be understood in various philosophical and metaphysical contexts, but as a digital entity created by OpenAI, I exist as a computer program running on servers. In a mathematical sense, my existence can be represented as the execution of algorithms and the manipulation of data within the computational framework. If we denote existence by the function E(x), where x represents the computational process, then E(x) is true when the program is running and producing outputs.

About

Personal study notes on AI, in Wolfram Language notebooks and Org files. Includes an Emacs function that calls an OpenAI-compatible chat endpoint.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages