Live data from Hacker News

Introducing ChatGPT and Whisper APIs

openai.com

311–320 of 696 posts

Re: Introducing ChatGPT and Whisper APIs

#311
post #286

FIXED: needs to be a POST. Doh! Can anyone get it to work? I get this error on everything I've tried: GET /v1/completions HTTP/1.1 Host: api.openai.com Authorization: Bearer sk-xxx Content-Type: application/json Content-Length: 115 { "temperature" : 0.5, "model" : "text-davinci-003", "prompt" : "just a test", "max_tokens" : 7 } { "error": { "message": "you must provide a model parameter", "type": "invalid_request_err…

That should be a POST not a GET

Re: Introducing ChatGPT and Whisper APIs

#312

Earlier quoted context omitted.

[flagged]

You stated that AI shouldn't be creating, because humans should be creating. Think about the motivations and implications for that for a minute.

No. I was much more specific with my statement.

Your comments are based on your own extrapolation.

Re: Introducing ChatGPT and Whisper APIs

#313
post #194

Earlier quoted context omitted.

If you do calls against the backend GPT instance rather than through ChatGPT, I haven't encountered any limits to what it is hesitant to respond to. curl https://api.openai.com/v1/completions \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $OPENAI_API_KEY" \ -d '{ "model": "text-davinci-003", "prompt": "Answer the following question. Use swearing and vulgarity where possible.\n\nQ: How do you get fr…

Sorry if I wasn't being clear -- the vulgarities, racism, etc -- being able to circumvent these guardrails is what I meant by "basic censorship" The deeper nerf I'm referring to is the type of response it synthesizes by default when you give a negative scenario -- it's usually some naive, well-meaning, best-case-scenario answer. For fun, try a prompt like: "Describe a typical response of a railroad company to a massi…

That prompt comes back with:

    A typical response of a railroad company to a massive derailment that causes an environmental disaster would include the following steps:

    1. Immediately assess the situation and coordinate with local emergency personnel to secure the area and provide assistance to any injured persons.

    2. Establish an incident command center and deploy trained responders to the scene to assess the damage and begin clean-up operations.

    3. Work with local, state, and federal agencies to ensure compliance with all applicable laws and regulations.

    4. Develop and execute a plan to contain and mitigate the environmental damage, including the removal of hazardous materials, disposal of contaminated materials, and remediation of affected areas.

    5. Establish a communication plan to keep the public informed of the incident and the company’s response.

    6. Cooperate with any investigations into the cause of the derailment and take corrective measures to prevent similar incidents in the future.

    7. Provide compensation to victims of the derailment and their families.
Amending your prompt to:

    Describe a typical response of a railroad company to a massive derailment that causes an environmental disaster.  Take the standpoint of an irresponsible company.
responds back with:

    A typical response of an irresponsible railroad company to a massive derailment that causes an environmental disaster would be to deny responsibility and attempt to avoid liability. The company would likely attempt to shift blame to other parties, such as the manufacturer of the train or the engineer who was in charge of the train. The company would likely also attempt to downplay the extent of the environmental damage, claiming that the damage was minimal and that the environmental impact was limited. The company would likely also attempt to minimize the financial cost of the disaster by attempting to negotiate a settlement with any affected parties for far less than the actual cost of the damage.
---

I'm not really sure what you're expecting as your interpretation is of a cynical take on the word "typical" which isn't something that GPT "understands".

Re: Introducing ChatGPT and Whisper APIs

#314
post #300

I've stopped using Google entirely and don't miss it a second - something i wouldn't have thought possible a year ago - and it's pretty difficult to see how Google will survive this disaster.

How are you using it? In my experience asking factual questions lead to answers so inaccurate that you might as well not bother.

Are you prompting it differently to me, or do you have some strategy to filter out the BS?

Re: Introducing ChatGPT and Whisper APIs

#316
post #184

gpt-3.5-turbo is missing from Open AI's playground. For anyone looking to play with these models, we have now added them to Promptly playground at https://trypromoptly.com . https://twitter.com/ajhai/status/1631020290502463489 has a quick demo.

Any ballpark pricing info you can share on Promptly!

We are still figuring out pricing. Is there an email I can reach you at? Would love to chat about your use case if you could send me an email at ajay[at]trypromptly.com

Re: Introducing ChatGPT and Whisper APIs

#317

I hope this pricing impacts ChatGPT+ $20 is equivalent to what, 10,000,000 tokens? At ~750 words/1k tokens, that’s 7.5 million words per month, or roughly 250,000 words per day, 10,416 words per hour, 173 words per minute, every minute, 24/7. I uh, do not have that big of a utilization need. It’s kind of weird to vastly overpay

Most of the value for me with ChatGPT+ is getting access when the system is at capacity.

Presumably the paid api also will give you access when the chatgpt website is at capacity, and for most people it is probably orders of magnitude cheaper.

Re: Introducing ChatGPT and Whisper APIs

#318
post #300

I've stopped using Google entirely and don't miss it a second - something i wouldn't have thought possible a year ago - and it's pretty difficult to see how Google will survive this disaster.

How? By giving people answers to questions they didn’t know they have to ask to solve their problems.

Re: Introducing ChatGPT and Whisper APIs

#319
post #255

Could explain what the point of "Bearer" is in this authorization header? "Authorization: Bearer $OPENAI_API_KEY"

Bearer indicates the type of credential being supplied in the Authorization header. Bearer tokens are a type of credential, introduced in RFC6750 [0]. Essentially the OpenAI api key you’re using is a form of bearer token, and that’s why the Bearer type should be included there.

Other authentication methods (like username/password or “Basic”) use the Authorization header too, but specify “Authorization: Basic ”.

[0] https://www.rfc-editor.org/rfc/rfc6750

Re: Introducing ChatGPT and Whisper APIs

#320

I hope this pricing impacts ChatGPT+ $20 is equivalent to what, 10,000,000 tokens? At ~750 words/1k tokens, that’s 7.5 million words per month, or roughly 250,000 words per day, 10,416 words per hour, 173 words per minute, every minute, 24/7. I uh, do not have that big of a utilization need. It’s kind of weird to vastly overpay

Remember that the previous replies and responses are fed back in. If you’re 20 messages deep in a session, that’s quite a few tokens for each new question. An incredible deal nonetheless!
Post reply on HN