Git Product home page Git Product logo

Comments (4)

karthink avatar karthink commented on May 23, 2024

@minad Hi!

I'm almost done with org support, I should be adding it in 30 minutes or so.

For the last couple of days I was trying to get ChatGPT to reply with org-formatted responses by using a prompt, but the results were inconsistent and non-reproducible. I guess this element of randomness is expected with LLMs.

So I wrote a basic converter for the responses instead. (Suggested markdown -> org solutions all seemed to involve pandoc, so I wrote a very basic parser in elisp.)


BTW the readme doesn't mention this yet, but you can use gptel in any buffer by selecting a region and calling gptel-send, the special buffer is not needed. You can then select a region that includes your prompt and its response and call gptel-send again to continue the conversation. (Responses are tracked using a text property.)

from gptel.

karthink avatar karthink commented on May 23, 2024

Org support added in 9db679d.

You can enable it with

(setq gptel-default-mode 'org-mode
      gptel-prompt-string "*** ") ;<-- or anything you'd like

Alternatively, you can directly call gptel-send from an org-mode buffer (with a region of text selected) and it should work correctly.

from gptel.

minad avatar minad commented on May 23, 2024

Great, I will try this now!

from gptel.

hab25 avatar hab25 commented on May 23, 2024

@karthink

(Suggested markdown -> org solutions all seemed to involve pandoc, so I wrote a very basic parser in elisp.)

Why avoid pandoc? IMO reuse of a much more complete and robust implementation seems like too enormous of a benefit.

from gptel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.