kardolus / chatgpt-cli

ChatGPT CLI is a versatile tool for interacting with ChatGPT models via OpenAI and Azure, as well as with models from Perplexity AI. It offers streaming, query mode, and history tracking for seamless, context-aware interactions. With extensive configuration options, it’s designed for both users and developers to create a tailored GPT experience.
MIT License
503 stars 34 forks source link

Add config for custom prompt #47

Closed catskull closed 4 months ago

catskull commented 4 months ago

Great project! Having fun with it.

This is my first time using Go but the docs and code are succinct enough I was able to manage without much hassle. Great job!

Ideally you would be able to use the timestamp and counter variables with some placeholders in the custom prompt string, but I couldn't figure that out and this fits my use case.

"prompt" has some conflated meaning in this context but I chose that since the code was already calling it that. :)

kardolus commented 4 months ago

@catskull this is great! I am glad you're having fun playing with the code base.

I just cloned your repo to play around with it as well. I said it to "test" and it worked. Will think about variables.

I was thinking, we may want to go with a different name (instead of prompt). In the future I want to support "prompts" (very overloaded i know) in the same style as in this great repo: https://github.com/danielmiessler/fabric

Can't think of a good name just yet. Any ideas?

catskull commented 4 months ago

Maybe commandPrompt?

https://en.wikipedia.org/wiki/Command-line_interface#Command_prompt

kardolus commented 4 months ago

@catskull That sounds great, we will have to snake it in the config file command_prompt just to be consistent. But that sounds good!

kardolus commented 4 months ago

@catskull PS I am also happy to merge this in and make the change myself. No pressure! :). I will check back in tomorrow evening.

catskull commented 4 months ago

@kardolus PR updated! 🤓