suonlight / ob-chatgpt

GNU General Public License v3.0
28 stars 5 forks source link

import external file #7

Open 11111000000 opened 1 week ago

11111000000 commented 1 week ago

I tryi'n with hope:

#+begin_src chatgpt-shell :context nil :version "o1-mini" :system nil :results file :file ./code/some-new.sh
please refactor:
{(let ((file-path "./code/some.sh"))
(with-temp-buffer
(insert-file-contents file-path)
(buffer-string)))}}
#+end_src

no luck :-) how to add external to prompt?