summaraizer openai #
Summarizes using OpenAI
Synopsis #
So summarize using OpenAI, you need to provide the API token. Optional flags are the AI model and the prompt. The prompt can make use of Go template functions.
summaraizer openai [flags]
Examples #
summaraizer openai --token <token>
summaraizer openai --token <token> --model gpt4o-mini
Options #
-h, --help help for openai
--model string The AI model to use (default "gpt-3.5-turbo")
--prompt string The prompt to use for the AI model (default "\nI give you a discussion and you give me a summary.\nEach comment of the discussion is wrapped in a <comment> tag.\nYour summary should not be longer than 1200 chars.\nHere is the discussion:\n{{ range $comment := . }}\n<comment>{{ $comment.Body }}</comment>\n{{end}}\n")
--token string The API Token for OpenAI
SEE ALSO #
- summaraizer - Summarizes comments