https://www.boundaryml.com logo
GitHub - openai/harmony: Renderer for th...
# general
j
Is BAML impacted by OpenAI Harmony? https://github.com/openai/harmony
v
a
weird that they would specify returns as 'any' for so many of these that should have known return types, establishes a weird pattern. also almost feels like typescript function definitions so wonder why they don't just literally use TS types and TS function call syntax at that point
v
its cause they are using jinja
and it hard
in jinja
also odd that they dont put leading spaces
cause that makes tokenization so much better
but again
jinja strips whitespace by default
so likely why
a
like they parse with jinja too?
v
ah no, like thier formatters are all jinja
p
But they have all that engineering talent. Why do they take types and type systems so lightly 🤦🏽‍♂️
My gripe with it is that it's neither as readable nor as concise as BAML. But because it's OpenAI, they get all the eyeballs on it in the first 48 hours and usage takes off, for no good reason. Sigh
Been noticing it with a lot of other Google projects also lately.. the correlation between the number of users and actual usability, is very low.
f
is there any improvement in model response/reliability when using the
harmony
format?
a
it's funny, we saw openai's initial leaks of how they do function calling 2 years ago when we started baml, and they havent changed much if at all. That's how we got the format for using descriptions on top of fields like:
Copy code
// a description
field: string
It's also annoying that suddenly this is making the rounds of 'wow json schema sucks, look at openai's format' when we've been telling people for a while. We just have to market more and/or collab with bigger names i suppose
a
yeah, how it is when they have massive distribution. who knows, maybe you can hook onto that wave though
f
Or prove there's a significant enough reliability / accuracy improvement ?
v
we had a post about this a bit ago if its useful! https://www.boundaryml.com/blog/sota-function-calling we should post another one at some point with newer metrics!
p
Nothing like some experiments to see numbers!