David Dada
11/13/2025, 12:38 AMaaronv (BAML)
11/13/2025, 6:06 PMaaronv (BAML)
11/13/2025, 6:07 PMDavid Dada
11/13/2025, 10:52 PMseriousken
11/24/2025, 10:16 PMseriousken
11/29/2025, 6:55 PMAkash Vekariya
12/05/2025, 5:37 PMperikost
12/11/2025, 2:12 PMfn Foo(options: ConfigOptions) -> Bar
the generated TypeScript client creates a function like:
async Foo(options: ConfigOptions, __baml_options__?) {
const options = { ...this.bamlOptions, ...(__baml_options__ || {}) };
...
this.runtime.callFunction("Foo", { options });
}
Because the parameter options and the internal variable const options use the same name, the parameter gets shadowed and the runtime receives the wrong value resulting in [BAML ERROR]: Invalid parameters for BAML function Foo
It seems like other parameter names could also clash with internal locals (e.g. signal, collector, env, raw, etc.).
Should I open a GitHub issue for this (didn't find anything similar)?bagrat
12/17/2025, 2:44 PMpoile
12/19/2025, 7:49 PMAWS_WEB_IDENTITY_TOKEN_FILE + AWS_ROLE_ARN, but BAML only reads explicit credentials (AWS_ACCESS_KEY_ID, etc.). This is the AWS equivalent of the Vertex WIF issue ([#2560](https://github.com/BoundaryML/baml/issues/2560)). I've got a workaround using the AWS SDK to exchange the token for temp credentials and pass them to ClientRegistry, but native support would be cleaner. The Rust aws-config crate already has WebIdentityTokenCredentialsProvider in its default chain, so it might be straightforward to add.
Worth opening an issue for this? Happy to provide more details or help contribute a fix.Oscar
12/25/2025, 12:27 AM> [build 6/6] RUN ldd /app/node_modules/.../baml.linux-x64-musl.node && exit 1:
0.122 /lib/ld-musl-x86_64.so.1 (0x7ffffff5a000)
0.123 libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x7ffffccaf000)
0.123 libc.so.6 => /lib/ld-musl-x86_64.so.1 (0x7ffffff5a000)
0.123 ld-linux-x86-64.so.2 => /lib/ld-linux-x86-64.so.2 (0x7ffffcca8000)
0.123 Error relocating /app/node_modules/.../baml.linux-x64-musl.node: __register_atfork: symbol not found
...
Admittedly, I'm a bit out of my depth here - but my understanding is that we shouldn't be seeing dynamic linking libraries with a musl output? This lead me to napi-rs.
Poking around the docs there, I see a nice example on how to do cross-compilation, curiously, I notice they are using the -x (equivalent to --cross-compile) [option](https://github.com/napi-rs/cross-build/blob/77d4d8cd22fff4d27588a35d8cd2f26be9b39bd4/.github/workflows/pure-rust-build-on-linux.yml#L33) for the musl targets (instead of --use-napi-cross). I wonder if reflecting this change would fix the issue?
I've attempted to try this locally, but I'm having a hard time getting the build to work - would anybody mind lending me a hand with this?
Oh, and Merry Christmas! πJustin G
01/13/2026, 7:26 PMMazz
02/12/2026, 5:14 PMAnders
03/28/2026, 3:51 AMAdam B
04/13/2026, 11:56 AMbaml-schema-wasm compiles the full runtime to WASM and already makes real LLM calls (the playground uses it). The gap is that it exposes a playground/IDE API rather than the `callFunction`/`streamFunction`/`TypeBuilder` etc. API that the generated client code expects.
My rough read on what's left:
- Add callFunction, streamFunction, buildRequest, TypeBuilder, ClientRegistry, RuntimeContextManager as #[wasm_bindgen] exports to baml-schema-wasm (the pattern is already there via run_tests)
- A thin wasm-entry.js shim in language_client_typescript that initialises the WASM and re-exports everything under the same interface as the NAPI module
- package.json export conditions (workerd, browser) pointing at the shim
- A couple of small process.env / process.on guards in async_context_vars.ts
- wasm-pack build wired into the publish pipeline alongside the existing napi build
Before I start digging in I wanted to ask:
1. Is this actually wanted? Don't want to open a big PR into a dead end
2. Is baml-schema-wasm the right place to add these bindings or should they live in a new crate?
3. Any known blockers I've missed - e.g. WASM binary size concerns, streaming edge cases?
4. Preferred way to contribute - draft PR early, or work something out in an issue first?
Happy to take a stab at the Rust bindings side if the direction is clear.Serna
04/13/2026, 2:58 PMgorspeed#2002
06/20/2026, 11:44 AMbaml-sam
06/21/2026, 5:09 PMgorspeed#2002
06/21/2026, 10:11 PMbaml-sam
06/22/2026, 8:51 PMgorspeed#2002
06/22/2026, 11:37 PMjubjub
07/10/2026, 3:28 PMjubjub
07/13/2026, 3:34 AMRhesus
07/30/2026, 9:33 AMflake.nix has accumulated a lot of different responsibilities. Itβs ~ 800 lines and includes both a dev shell and package outputs for CLI/Python/TypeScript, including debug/release, musl, and Darwin handling. As far as I can tell, all Nix logic lives in that one file; I donβt see a separate nix/ structure, checks, formatter, docs, or Nix CI.
It also seems to build from the older engine/ workspace, while the current Rust dev docs point contributors to baml_language/. On top of that, the Linux dev shell looks currently broken because it references removed pkgs.llvmPackages_17.libclang. .envrc also auto-selects use flake whenever nix-shell exists, and it sets RUSTC_WRAPPER=baml-sccache, but the Nix shell doesnβt include sccache.
So Iβm wondering what maintainers want to do with Nix:
1. Keep it as dev-shell-only: then maybe simplify it, fix Linux/sccache, and remove or mark package outputs unsupported.
2. Support real packaging: then it probably needs a redesign around baml_language/, explicit supported systems, checks/CI, and a proper nix/ structure.
3. Treat it as unofficial/best-effort or external: then maybe keep upstream minimal and let a separate baml-nix flake handle packaging.
If upstream is interested in supported Nix packaging, Iβd be willing to work on a refactor and split things into a nix/ directory, similar in spirit to packaging/aur, instead of keeping everything inside one large flake.nix.
Curious what direction youβd prefer.vaibhav mittal
07/30/2026, 6:31 PMsaime0053
08/18/2026, 2:37 PMvalueHolder when every field in a class is null. I'm thinking of adding a focused regression test and making the smallest change needed for the generated Go code to compile.
Is the issue still available, and does that approach make sense?avery (BAML)
08/18/2026, 7:00 PMRitz
08/18/2026, 9:43 PMJan
08/19/2026, 3:12 PMbaml-sam
08/31/2026, 10:38 PM