https://www.boundaryml.com logo
๐ŸŸก Query about indefinite process and where to fin...
# questions
g
Our error handling has a bug right now, and some errors result in this looping UI state. weโ€™re working on a fix, in the meantime would you like some help tracking down the error?
o
hey, thanks for the quick answer. Why not, what info would we need? I just installed everything from scratch again, since i thought, it was something else. I also tried it on windows as well as on macos with vscode extension and baml-py 0.210.0
g
Cool, letโ€™s do it. Sorry about the bug! You can either run the test via baml-cli, or paste your BAML code here and Iโ€™ll take a look/run the test
o
class Missing_Info { browser string? @description(#"Check if there is any information on which browser was used"#) users_involved string? @description(#"Is information given, if there are one or more users affected"#) screenshot bool? @description(#"IS a screenshot attached"#) } function Get_Missing_Info(arg:string) -> Missing_Info { client MyGtp4o prompt #" Extract from this content: {{ arg }} {{ ctx.output_format }} "# } test my_test { functions [Get_Missing_Info] args { arg: #"Hi, my browser shows this weird screen"# } }
just wanted to get started, so it is not that advanced ๐Ÿ™‚
g
Haha no worries this is a judgment free discord zone ๐Ÿ˜› anyhow thatโ€™s a fine function. Could you paste your clients.baml too?
o
Hehe, nice! So I have my creds directly pasted into the definition of my client. And if I would have done it with a .env file it would also be useless?
g
You can use env.MY_SECRET too, in your client config, then put the secret in .env.local
That should work.
Oh another thing you can try is to copy the raw curl request (available in the vscode extension), and run that command with curl.
I also notice a possible typo in your function? The client name is MyGtp4o, does that match your clients.baml definition, or should it be MyGpt4o?
o
Ok, will try it asap! Thanks for pointing the typo. but it is the same. Thx to copy pasting ๐Ÿ™‚
Thank you anyway, very appreciated
g
Most welcome! I will try your function myself with a generic client in a couple hours. Iโ€™m AFK at the moment.
a
can you send your client definition as well?
i think there may be an error mid-stream that makes it get stuck
o
hey, sure.
client MyGtp4o { provider openai retry_policy Constant options { base_url "" api_key "" model "gpt-4o" } }
a
you probably dont need to add base_url. Does the cURL request from the playground work on your terminal?
So seems to be a misconfiguration of my client?
a
yeah
oh definitely remove the base_url
if the curl works on your terminal then you're good
you can also try provider "openai-responses"
o
ok, thx. Will try it out. We're using azure openai endpoint thats why i used the base_url in the first place
a
ohh in that case we ahve an azure specific provider
o
i did not use baml for around three weeks, did it change in that time by any chance ?
a
hmm we did release some updates. Did it used to work with this openai-generic client + base url?
o
yes
i just wanted to use my old code
a
you can change the version of your VSCode extension until it works as well
o
at least for the clients
a
what version were you on previously?
o
Ok, thank you very much. Btw you are doing an awesome job and many thanks for the help
I can check tomorrow on my other pc since i am now on my macbook
and here i installed it fresh
a
oh thank you as well! And yes if there's a regression we will want to fix it
o
but i think it was version 0.201.0
a
oks
o
have a great day
Good Morning from Germany ๐Ÿ™‚ It is working with the baml-cli with provider "openai-generic" or "openai" or "azure-openai"
I also have a litellm proxy in between and it is working. But UI is still not working (version 0.209.0 since i was on windows where 0.210.0 is not supported yet)
Update: UI/Playground is working fine on macos but windows still endless spinning wheel
a
Sweet we will check windows