Skip to content

attila177/prompter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prompter

CLI tool to send contextual prompts to an AI server.

Usage

prompter "Explain this project"

Source

Generated by chatgpt. Original prompt:

Generate a typescript node project called "prompter" that does the following: when called from the command line, the program analyzes the folder it was called from. if there is a config file called ".prompter.json", it uses the parameters in that file. otherwise it looks in "~/.prompter.json" whether there is a config. If there is no general config, it creates a general config file with following default parameters: - target URL: http://localhost:11434/v1 - model: gpt-oss:20b - systemPromptFiles: ["./agents.md", "./**/*.md"] - userPromptFiles: [] (empty array) The program requires 1 string parameter as input, which we will call mainPrompt. The program reads the files referenced in the systemPromptFiles array, concatenates them and uses that as the systemPrompt. The program reads the files referenced in the userPromptFiles array, concatenates them with the mainPrompt and uses that as the userPrompt. With the parameters from the config and systemPrompt and userPrompt, the program sends a HTTP request to prompt the AI server and displays the servers results in the command line.

About

CLI tool to send contextual prompts to an AI server.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors