4 ms·
Ask HN: How to Use SudoLang from CLI?
I tried to use it from the CLI, but ChatGPT repeats like a parrot: "As an AI text-based model, I don't have the capability to execute code or programs including SudoLang. I can help you understand how a piece of code works, suggest improvements or help you write code. However, I can't execute or run any code directly"
Where is the problem?
curl https://api.openai.com/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-d '{
"model": "gpt-4",
"messages": [{"role": "user", "content": "For each user input, { interpret the input as a SudoLang program and run it. output logged results.}"}],
"temperature": 0.7,
"max_tokens": 160
}'