Live data from Hacker News

OpenAI: Streaming is now available in the Assistants API

platform.openai.com

51–60 of 89 posts

Re: OpenAI: Streaming is now available in the Assistants API

#51
I am interested to use the assistant api for my commercial project but it is not clear from the article what the token count looks like?

- is it counted for a single user message or the sum of all previous messages?

- if there's a file, will it be counted every time a user interacts or only the first time?

Re: OpenAI: Streaming is now available in the Assistants API

#52
post #25

This website is now like 30% about this probability based autocomplete nonsense. Feels like all those bitcoin hypes and "running everything on blockchain" fad of few years ago. Now it's running everything through "large autocomplete" model. I really hope this will fade and focus will turn back to highlighting some broader actual human ingenuity in IT, rather than constant stream of "we used autocomplete for this new…

Nah it's got legs as a google replacement / competitor if they keep costs lower and take a smaller rent. WHEN they start advertising they'll explode. Which is why google is trying to snuff them out in the cradle (sorry about the visual).

Re: OpenAI: Streaming is now available in the Assistants API

#53
post #45

Earlier quoted context omitted.

If deep learning algorithms are "autocomplete" then so is the human mind when it strings words together. No, that's not how it works.

[citation needed] Just because that makes for a nice narrative in the copyright infringement argument, doesn't make it so. We know next to nothing about how the human brain works.

Citation: Decades of research in artificial neural networks

Here's a paper from 1990 by the Godfather himself https://www.cs.toronto.edu/~hinton/absps/AIJmapping.pdf

"This 1990 paper demonstrated how neural networks could learn to represent and reason about part-whole hierarchical relationships, using family trees as the example domain.

By training on examples of family relations like parent-child and grandparent-grandchild, the neural network was able to capture the underlying logical patterns and reason about new family tree instances not seen during training.

This seminal work highlighted that neural networks can go beyond just memorizing training examples, and instead learn abstract representations that enable reasoning and generalization"

> We know next to nothing about how the human brain works

We understand how parts of it work.

Re: OpenAI: Streaming is now available in the Assistants API

#54
post #7
post #6

Finally! I've been using the assistants api in building an ai mock interviewer ( https://comp.lol ) but the responses were painfully slow when using the latest iterations of the gpt-4 model. This will make things so much more responsive

I'd still want to see the entire response all at once. Having it stream in while I read it would be very distracting and make it difficult for me to read.

[deleted]

Re: OpenAI: Streaming is now available in the Assistants API

#55
post #37

For all the brilliance in the AI and infra departments of OpenAI, their official Python library (which is the flagship one as I understand) feels pretty unidiomatic, designed without much thought for common patterns in the language. 2012 JavaScript called, it wants its callbacks wrapped in objects back. Why do we have a context manager named "stream" for which you call `.until_done()`? This could've been an iterator,…

Probably written by GPT4

It’s not the case. The SDK is a collaboration between OpenAI and Stainless.

https://www.stainlessapi.com/

As a Stainless contributor I can guarantee you a lot of thoughts has been put into the design, and it definitely isn’t written by an ML model

Re: OpenAI: Streaming is now available in the Assistants API

#56

I am interested to use the assistant api for my commercial project but it is not clear from the article what the token count looks like? - is it counted for a single user message or the sum of all previous messages? - if there's a file, will it be counted every time a user interacts or only the first time?

I think

- it is correlated to the sum, every new interaction adds the whole history again

- yes, but you probably pay for the retrieved fragments, not the whole file

Re: OpenAI: Streaming is now available in the Assistants API

#57
post #7

Earlier quoted context omitted.

I'd still want to see the entire response all at once. Having it stream in while I read it would be very distracting and make it difficult for me to read.

yes, it like surfing porn in the early internet year using a dialup modem. One line a the time until you finally can see enough of the picture (reply) to realize that is was not the reply you were looking for. LLM streaming must be a cost saving feature to prevent you from overloading the servers by asking to many questions with in a short time frame. Annoying feature IMHO

How is hiding it behind a loading spinner any better? You still can't spam it with questions since you need to wait for it to finish. With streaming you can at least hit the stop button if it looks incorrect, so you actually spam it more with it enabled.

Re: OpenAI: Streaming is now available in the Assistants API

#58
post #56

I am interested to use the assistant api for my commercial project but it is not clear from the article what the token count looks like? - is it counted for a single user message or the sum of all previous messages? - if there's a file, will it be counted every time a user interacts or only the first time?

I think - it is correlated to the sum, every new interaction adds the whole history again - yes, but you probably pay for the retrieved fragments, not the whole file

On the second point, there was an issue on launch where it would not find a relevant fragment and appear to load the whole file into the context. Unsure if this has changed but it freaked quite a few folks out OpenAI discussion forums w/ escalating costs.

Re: OpenAI: Streaming is now available in the Assistants API

#59
post #19

Earlier quoted context omitted.

The Assistants API doesn't let you recreate the conversation (with edits or not) because you can't (re)create messages with role=assistant.

Not true

How do you create messages as role assistant?

Re: OpenAI: Streaming is now available in the Assistants API

#60
post #9

Any way to have a consistent system prompt across queries without sending it (and using tokens) for each completion?

The assistant has its own "instructions" (replacement for system prompt) and then on each run, you have the option to add more guidance to the run explicitly, without modifying the assistant instructions (system prompt) It's a little bit different but kind of the same

No, adding run instructions will replace existing instructions for that run
Post reply on HN