webology,
@webology@mastodon.social avatar

🤖 Starting my day off by asking ChatGPT(4) how to use Django's annotate + aggregate together with a one-sentence description of my model relationships and it was only off by one "s" on a model name.

As much as I loathe Copilot, this use of ChatGPT is where the technology shines.

jacob,
@jacob@jacobian.org avatar

@webology related: https://simonwillison.net/2023/Jun/18/symbex/

I’ve been fooling with this to help write tests (symbex some_function | llm --system “write pytest tests for this function”) and it’s pretty cool.

webology,
@webology@mastodon.social avatar

@jacob yes, I love what possibilities this opens up. We will have to compare notes at some point. I made a suggestion or two https://github.com/simonw/symbex/issues/9 but I haven't fully dove in.

I think my mental blocker is that I want it to write out a patch and update the code too.

demstavrou,
@demstavrou@fosstodon.org avatar

@jacob @webology
Very interesting. I am also using ChatGPT 4 for assisting in testing, and this does seem ideal to save all the copy and pasting. Only downside is the added cost to use the API. I think Simon's tool has a command that calculates the tokens. I guess it can be translated to cost so we can evaluate it before sending it :)

webology,
@webology@mastodon.social avatar

@jacob I tried this out and it works fairly well. I definitely need to spend some time on my prompt template since I'm looking for some specific things.

That said, I couldn't get the prompt "template" option to work. Not sure if it's just me, but I thought I might ask publicly before I open a ticket.

When I use it openai tells me that I didn't pass it a model so it's creating a test model for an example.

webology,
@webology@mastodon.social avatar

@jacob bah, nevermind.

I was missing $input which might be worth adding a warning for.

All good now.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • DreamBathrooms
  • magazineikmin
  • ethstaker
  • khanakhh
  • rosin
  • Youngstown
  • everett
  • slotface
  • ngwrru68w68
  • mdbf
  • GTA5RPClips
  • kavyap
  • thenastyranch
  • cisconetworking
  • JUstTest
  • cubers
  • Leos
  • InstantRegret
  • Durango
  • tacticalgear
  • tester
  • osvaldo12
  • normalnudes
  • anitta
  • modclub
  • megavids
  • provamag3
  • lostlight
  • All magazines