Makre sure your home directory does not have a space in it or gcc will crap itself
3. Install Homebrew[http://mxcl.github.com/homebrew/]
$ brew install git
| const API_URL = "https://api.openai.com/v1/chat/completions"; | |
| const MAX_TOKENS = 1500; | |
| const TEMPERATURE = 0.5; | |
| const SYSTEM_PROMPT = 'Act as assistant'; | |
| const MESSAGES = ["hello", "hi!", "how are you?"]; | |
| async function openAICompletion(msg) { | |
| const options = { | |
| method: "POST", | |
| headers: { |
Makre sure your home directory does not have a space in it or gcc will crap itself
$ brew install git