https://www.boundaryml.com logo
hey quick question, any idea why this
# troubleshooting-will-be-archived-use-help-instead
b
hey quick question, any idea why this line is so slow?
Copy code
from baml_client import b
req = b.request.ExtractThing(params)
seems to take ~300ms. Which is nearly 25% of the total request time https://cdn.discordapp.com/attachments/1253172325205934181/1400840788342083674/image.png?ex=688e1a26&is=688cc8a6&hm=976f73a828eff46e66ff4b325dafaf60d39fd3316cd04267ee1b0f3230f59c85&
v
what client are you using?
some clients require a network request to get api tokens and such
b
gemini
v
such as vertex and bedrock
b
ah
hm cant that be preloaded? google's google-genai library doesn't seem to have that overhead on every request
or cached
v
you mean doesn't?
ah aok
b
yup edited sorry
v
we do cache is
but i think we may have a very short life on that
we could consider extending it
(its like very very short)
v
oh thats itneresting
i thought we did it
I can take this on today for my friday 🙂
b
thank you! that would be awesome