https://www.boundaryml.com logo
๐ŸŸก BAML Namespace/Client Reference Issue
# questions
j
Hey, quick BAML namespace/client question. After moving modules into
ns_*
folders, I tried keeping shared clients in
baml_src/clients.baml
at root, e.g.
client<llm> FastLlm { ... }
. But inside
baml_src/ns_blog/...
,
client: FastLlm
does not resolve the root client, and
client: root.FastLlm
also seems unsupported in the
client:
field. If I duplicate
client<llm> FastLlm
inside multiple namespaces,
baml check
passes, but runtime fails with:
Client resolve function FastLlm$new matches multiple namespaced entries
Whatโ€™s the intended way to share one LLM client across namespaces? Should root clients be referenceable from namespaced LLM functions, or do client names need to be globally unique per namespace?
v
Oh interesting. This is a great catch for a bug. We can fix this!
2 Views