abhijit

18 posts

abhijit

abhijit

@abhijit

Katılım Mart 2007
33 Takip Edilen105 Takipçiler
abhijit
abhijit@abhijit·
#LessonsFromCycling Whenever there's an up, there's a down. Whenever there's a down, there's an up.
English
0
0
0
566
abhijit
abhijit@abhijit·
@simonw I was finding the usage really high. This will be a huge help
English
0
0
0
39
Simon Willison
Simon Willison@simonw·
Here's why; the realtime API is constantly replaying your previous input tokens throughout the conversation - similar to what would happen if you re-sent a growing conversation to the regular chat completion API
kwindla@kwindla

You're right, @altryne. The realtime API keeps its own internal copy of the entire conversational history and resends all of the previous input and output tokens every turn. You can see this in the usage metrics. That's why the realtime API is so expensive. Audio uses a lot of tokens, and a multi-turn conversation re-sends all the tokens from every previous turn. Cost numbers without caching: - a typical one-minute conversation costs about $0.10 - a five-minute conversation costs about $1.80 - a 10-minute conversation costs about $6.00 Here's a calculator: docs.google.com/spreadsheets/d… Context caching should result in a huge price drop, which is really exciting! Relatedly, it's difficult to manage conversation context with the realtime API right now, because you have to keep your own client-side copy of the context, selectively delete conversation items, and you can't insert conversation items. I'm sure OpenAI is also working on adding more context management capabilities to the API.

English
6
0
54
6.4K
abhijit
abhijit@abhijit·
"The whole problem with the world is that fools and fanatics are always so certain of themselves, and wiser people so full of doubts." – Bertrand Russell
English
0
0
0
759
abhijit
abhijit@abhijit·
Time is the only currency we have
English
0
0
0
518
abhijit
abhijit@abhijit·
Will ex Twitter employees be called ex-x from now on? #TwitterX
English
1
0
0
756
abhijit
abhijit@abhijit·
Programmers are Italians in disguise!
abhijit tweet media
English
0
0
0
748
abhijit
abhijit@abhijit·
Freedom is not free
English
0
0
1
0
abhijit
abhijit@abhijit·
When it comes to biometrics - fingerprints are usernames, not passwords
English
0
0
0
0
abhijit
abhijit@abhijit·
I know where self driving tech will help. Flying cars!
English
0
0
0
0
abhijit
abhijit@abhijit·
Seagull Management: fly in, squawk a lot, shit over everything, and then fly off.
English
0
0
0
0
abhijit
abhijit@abhijit·
In my opinion, every WhatsApp group should have a defined goal. This works for me - To share things which make our days brighter, to look at the world with joy and our lives happier.
English
0
0
0
0
abhijit
abhijit@abhijit·
1. Open VS Code 2. Open Dev Tools (Ctrl+Shift+P > Developer:Toggle Developer Tools) 3. Add code below
abhijit tweet media
English
0
0
0
0
abhijit
abhijit@abhijit·
I just realised - #reactjs is the new #PHP. You write all these methods which throw out bits of html!
English
0
0
0
0
abhijit
abhijit@abhijit·
What I don't get is - how come nobody was watching Snowden for suspicious activity?
English
0
0
4
0