Comment

Comment by gavinray

The code examples from their own website show the use of cURL and this CLI are roughly as verbose. Not sure I understand the need for maintaining a CLI.

    openai responses create \
      --model gpt-6-astra \
      --input "Write a short bedtime story about a unicorn." \
      --raw-output \
      --transform 'output.#(type=="message").content.0.text'
Versus

    curl https://api.openai.com/v1/responses \
      -H "Content-Type: application/json" \
      -H "Authorization: Bearer $OPENAI_API_KEY" \
      -d '{
        "model": "gpt-6-astra",
        "input": "Write a short bedtime story about a unicorn."
      }'
parent gavinray 10 days ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton