Replying to Avatar Leo Wandersleb

For all the client devs but especially noStrudel nostr:npub1ye5ptcxfyyxl5vjvdjar2ua3f0hynkjzpx552mu5snj3qmx5pzjscpknpr please help me categorize posts with highly visible tags. It's impressive how easy that is now with for example ppq:

$ curl https://api.ppq.ai/chat/completions -H "Content-Type: application/json" -H "Authorization: Bearer sk-topSecretToken" -d '{"model": "gpt-4o-mini","messages": [{"role": "user", "content": "Classsify the following post on social media as one of trivia, technical, social interaction, cheap engagement or deep thought. Answer with just the classification: Splash of bourbon and wild honey in my iced coffee why not "}]}' | jq '.choices[0].message.content'

"Social interaction"

The idea is that I provide noStrudel with my api key and it annotates all posts and I can filter by those annotations but relay operators could also provide these annotations to not run the same query for the same note multiple times. But then again, it's dirt cheap to run:

I'm not quite sure what's wrong with my query. The code example was using claude and I changed that to gpt-4o-mini which the api documentation claims to provide, too but even if the monster of a model claude is used, ... 0.1ct per post. I would probably pay that, too.

Reply to this note

Please Login to reply.

Discussion

nostr:npub16g4umvwj2pduqc8kt2rv6heq2vhvtulyrsr2a20d4suldwnkl4hquekv4h could we please have more detailed information in the "Account activity"? Price to all digits that actually got booked against the account or were these two api calls actually free? If so, how can I get a million of those? Or in other words, can I rely on the price to be the same the next time I run the same query or do prices surge at certain times? Also what did I do wrong that my Model ended up being "undefined"?

I actually have no idea what's going on with those undefined queries. I think you did get them for free hah. I will look into that.

Prices don't surge at any time, should be consistent.

If you can reproduce the undefined queries please let me know how, it would help.

Actually after talking with my dev we believe the undefined problem is fixed. Let us know if you see any problems.