Updates to the main chatgpt
script : interface to the OpenAI chat completion API
#9
Replies: 2 comments
-
I've been adding a couple of options that make structured JSON output possible if you want to make sure the AI generates proper JSON output in a structure you expect. That ranges from making sure the output is proper JSON, over giving an actual JSON schema the AI will match to simplifications -ra and -rar for two common usecases. Use -ra if you just want a JSON object with the given keys (making them self-explanatory of course pays, as there are no descriptions that way) or -rar if you want a list of such JSON objects. You still have to give a prompt that says that it should generate JSON and a bit of what you need, though.
|
Beta Was this translation helpful? Give feedback.
-
There is also now tools / function calling support: you can provide the possibility to call some command line programs or scripts for the AI before it creates the final answer. The AI does decide on it's own whether, when and how to call them, so please be careful that it can't do too much damage if something goes wrong.
|
Beta Was this translation helpful? Give feedback.
-
The bin/chatgpt script is what got this project started and is probably the main tool that gives you access to the OpenAI chat completion API in many ways. It's a swiss knife type tool with many options that make it easy to compose prompts, add image input or audio prompts, add text files, create JSON output, have the AI use tools, even chat with the AI from the command line. I'll add a comment here whenever there is a new category of options for it. As a baseline, the current options are:
Beta Was this translation helpful? Give feedback.
All reactions