• Rook@pawb.social
    link
    fedilink
    arrow-up
    17
    ·
    7 months ago

    Which model?

    When I tried on ChatGPT 4, it wrote a short python script and executed it to get a random integer.

    import random
    
    # Pick a random number between 1 and 100
    random_number = random.randint(1, 100)
    random_number
    
      • Amju Wolf@pawb.social
        link
        fedilink
        English
        arrow-up
        10
        ·
        7 months ago

        It generates code and then you can use a call to some runtime execution API to run that code, completely separate from the neural network.

    • Umbrias@beehaw.org
      link
      fedilink
      arrow-up
      2
      ·
      7 months ago

      That’s not answering the question though.

      “Pick a number between 1 and 100” doesn’t mean “grab two d10” or write a script.