HackerTrans
TopNewTrendsCommentsPastAskShowJobs

tomd

no profile record

Submissions

API for Current LLM Pricing

toktab.com
1 points·by tomd·6 tháng trước·1 comments

Background Tasks feature merged into Django

theorangeone.net
3 points·by tomd·10 tháng trước·1 comments

Permissions and performance improvements in Wagtail 5.1

wagtail.org
1 points·by tomd·3 năm trước·0 comments

comments

tomd
·6 tháng trước·discuss
When I'm building apps that use LLMs I'm often looking up prices from the providers' websites, sometimes copying and pasting them into prompts ('calculate and display the costs for this model using this screenshot'). I'd rather tell Claude Code 'use toktab.com to get the current prices for gemini-3-flash-preview'. And now I can! This site is built every night from the open source pricing data from LiteLLM - https://github.com/BerriAI/litellm - which was the most comprehensive data I could find. I think the main weakness is lack of fuzzy searching, which is hard to achieve with a statically generated site, but I'm very open to suggestions.
tomd
·2 năm trước·discuss
It's there now
tomd
·3 năm trước·discuss
> I'm unsure whether SQLite's extension interface is flexible enough to support this.

I think it is, if I've understood your requirements correctly. e.g. from the datasette-faiss docs:

  with related as (
    select value from json_each(
      faiss_search(
        'intranet',
        'embeddings',
        (select embedding from embeddings where id = :id),
        5
      )
    )
  )
  select id, title from articles, related
  where id = value
tomd
·3 năm trước·discuss
You might be interested in https://datasette.io/plugins/datasette-faiss, which I'm using alongside openai-to-sqlite for similarity search of embeddings, following @simonw's excellent instructions at https://simonwillison.net/2023/Jan/13/semantic-search-answer...