• TechLich@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    13 days ago

    That’s a good idea. Be careful of the more advanced models finding ways to abuse/circumvent it though, even with only a limited set of parameters. Eg. A lot of git commands can be tricked into dropping into less which can drop into a full shell.

    They know all the gtfobins.org tricks.

    • pixxelkick@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      12 days ago

      It should theoretically be impossible with the way you set it up.

      You explicitly, opt in, expose which parameters are available to the LLM, it cant invoke any params beyond that.

      And you can set params to hard values that arent exposed.

      Finally, you can use the enum config to further specify a whitelist of valid values for a param, anything else gets rejected.

      This pretty much locks most tools down tight.

      Though, wouldn’t hurt to add integration tests covering scenarios like this explicitly.