top 50 comments

sorted by: hot top controversial new old
[–] 151 points 2 years ago (5 children)

I wonder if that key works...

  • source
  • hideshow 5 child comments
  • [–] 43 points 2 years ago (4 children)
  • [–] 133 points 2 years ago (4 children)

    "Is this number even?"

    "yes of no"

    "Invalid Response, please answer with yes of no"

    "yes of no"

    "Invalid Response,...

  • source
  • hideshow 4 child comments
  • [–] 103 points 2 years ago (1 child)

    Processors might no longer get twice as fast every few years, but now we can use the power of servers to write software that runs even slower.

  • source
  • hideshow 1 child comment
  • [+] 88 points 2 years ago (2 children)
  • [–] 72 points 2 years ago

    Rofl. I just imagine OP furiously updating LinkedIn with "AI Programmer".

  • source
  • [–] 49 points 2 years ago (9 children)

    Probably not a good idea to show your API key to everyone..

  • source
  • hideshow 9 child comments
  • [+] 64 points 2 years ago* (last edited 6 months ago) (6 children)
  • [–] 36 points 2 years ago (5 children)

    Same here. I’m pasting my password here and it will encrypt it so no one can see it other than me: *******

  • source
  • parent
  • hideshow 5 child comments
  • load more comments (1 reply)
  • [–] 43 points 2 years ago (4 children)

    Why are you leaking your API key?

  • source
  • hideshow 4 child comments
  • load more comments (1 reply)
    [–] 38 points 2 years ago (5 children)

    Inefficient solution.

    You should simplify it to just ask the model if the last bit of the binary representation of the integer is a 1 or a 0.

  • source
  • hideshow 5 child comments
  • [–] 33 points 2 years ago (1 child)
  • [–] 33 points 2 years ago (5 children)

    Have to say, this is not the most convoluted way of testing a simple thing I've seen in my years, not by a long shot.

  • source
  • hideshow 5 child comments
  • [–] 6 points 2 years ago (4 children)

    Really? What's something more complicated?

  • source
  • parent
  • hideshow 4 child comments
  • [–] 24 points 2 years ago (5 children)

    oh Jesus

    did this come full circle?

    we used python to query chatgpt to decide if a number is even or odd and return true or false?

  • source
  • hideshow 5 child comments
  • [–] 22 points 2 years ago (5 children)

    Key seems valid. I'll check all the integers for you to see how accurate it is.

  • source
  • hideshow 5 child comments
  • [–] 7 points 2 years ago (3 children)

    While you're at it, also test

    • one
    • three fifty
    • 69 nice
    • 6.9
    • 4,20
    • null (it's German for zero)
    • pie (and pi)
    • cake
    • fruits
    • One million three hundred (wonder if it gets confused by "one" and "three")
  • source
  • parent
  • hideshow 3 child comments
  • [–] 16 points 2 years ago (2 children)

    Don't use OpenAI's outdated tools. Also, don't rely on prompt engineering to force the output to conform. Instead, use a local LLM and something like jsonformer or parserllm which can provably output well-formed/parseable text.

  • source
  • hideshow 2 child comments
  • [–] 11 points 2 years ago (6 children)

    TIL Python dictionaries allow trailing commas.

  • source
  • hideshow 6 child comments
  • load more comments (6 replies)
    [–] 11 points 2 years ago* (6 children)

    yes of no

    Not even valid json but compiler doesn't complain

  • source
  • hideshow 6 child comments
  • load more comments (1 reply)
    load more comments
    view more: next ›