Vaibhav (BAML π)
08/14/2025, 10:56 PMlollypop1093
08/14/2025, 5:16 PMhook.js:608 Runtime error TypeError: Cannot read properties of null (reading 'get')
at e (1951-5b92907d78f1b0a7.js:21:50793)
at l (1951-5b92907d78f1b0a7.js:21:45269)
at 1951-5b92907d78f1b0a7.js:21:12919
at Object.useMemo (5621bdbc-4c832fcaeeb3b900.js:1:50166)
at t.useMemo (1951-5b92907d78f1b0a7.js:22:81460)
at I (1951-5b92907d78f1b0a7.js:21:12884)
at rE (5621bdbc-4c832fcaeeb3b900.js:1:40345)
at iZ (5621bdbc-4c832fcaeeb3b900.js:1:117030)
at ia (5621bdbc-4c832fcaeeb3b900.js:1:95166)
at 5621bdbc-4c832fcaeeb3b900.js:1:94988
at il (5621bdbc-4c832fcaeeb3b900.js:1:94995)
at oJ (5621bdbc-4c832fcaeeb3b900.js:1:92351)
at nb (5621bdbc-4c832fcaeeb3b900.js:1:26837)
at nw (5621bdbc-4c832fcaeeb3b900.js:1:27575)
at 5621bdbc-4c832fcaeeb3b900.js:1:28609
https://cdn.discordapp.com/attachments/1253172325205934181/1405600947551600660/image.png?ex=689f6b64&is=689e19e4&hm=f69444c824432dfe7ed38daaa124b58966064c7f407c9dfe225f0f6d7664ad3b&Mcgold1
08/11/2025, 8:36 PMrecursive use of an object detected which would lead to unsafe aliasing in rustbaml-sam
08/01/2025, 9:54 PMthe_joshy_90210
08/01/2025, 8:33 PMbenepstein
08/01/2025, 2:01 PMfrom 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&americanthinker_02199
07/30/2025, 4:09 PMBamlOptions TypedDict? Here's the code I'm using. The client_registry option is working but not the env option:
baml_options={'client_registry': cr, 'env': {'BAML_LOG': 'OFF'}}darkshark008
07/28/2025, 7:57 PMkaitron1018987
07/25/2025, 8:52 PMbenepstein
07/24/2025, 6:22 PM18:15:11:ERROR:copilot.state.extract: Error updating milestones
Traceback (most recent call last):
baml_client/async_client.py", line 318, in ExtractReminderStatus
baml_client/runtime.py", line 98, in call_function_async
pyo3_async_runtimes.RustPanic: rust future panicked: unknown error
thread 'tokio-runtime-worker' panicked at /root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/async-io-2.4.1/src/reactor.rs:101:39:
cannot initialize I/O event notification: Os { code: 24, kind: Uncategorized, message: "Too many open files" }
thread 'tokio-runtime-worker' panicked at /root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/async-io-2.4.1/src/reactor.rs:101:39:
cannot initialize I/O event notification: Os { code: 24, kind: Uncategorized, message: "Too many open files" }
thread 'tokio-runtime-worker' panicked at /root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/async-io-2.4.1/src/reactor.rs:101:39:
cannot initialize I/O event notification: Os { code: 24, kind: Uncategorized, message: "Too many open files" }
thread 'tokio-runtime-worker' panicked at /root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/async-io-2.4.1/src/reactor.rs:101:39:
cannot initialize I/O event notification: Os { code: 24, kind: Uncategorized, message: "Too many open files" }
i'm on baml 0.201.0risible.barbel
07/24/2025, 6:15 AMstugorf
07/23/2025, 9:57 PMasync def my_func(x: str) -> str:
collector = Collector(name="prune_schema_collector")
llm_call = LLMCall(name="prune_schema_llm_call")AsvinTheGuy
07/23/2025, 12:59 AMAjay Bhargava
07/22/2025, 5:07 PMemil
07/21/2025, 8:31 AMamericanthinker_02199
07/19/2025, 8:46 PMclients.baml file as found in the baml_src directory to define all of my clients. I have a Claude Haiku model defined like so:
client<llm> CommercialHaiku {
provider anthropic
retry_policy Constant
options {
model claude-3-5-haiku-latest
api_key env.ANTHROPIC_API_KEY
}
}
However, whenever I attempt a request with the api_key set that way, I always get the same error:
{"type":"error","error":{"type":"authentication_error","message":"invalid x-api-key"}}, status_code=401)
Even though I have a .env file at the root folder. When I hard code the api_key field with the actual key itself the request works as expected.
1. Clearly my clients.baml file is not pulling in my environment variables, is there a way to check for this?
2. Are we, in fact, supposed to hard code those api_key values into the api_key field, and the env.ANTHROPIC_API_KEY is simply a placeholder value to be shown as an example?anerli
07/18/2025, 5:52 AM---ERROR (Unspecified error code: 400)---
Request failed with status code: 400 Bad Request. {"error":{"code":400,"message":"Invalid JSON payload received. Unknown name \"thinkingBudget\" at 'generation_config': Cannot find field.","status":"INVALID_ARGUMENT","details":[{"@type":"type.googleapis.com/google.rpc.BadRequest","fieldViolations":[{"field":"generation_config","description":"Invalid JSON payload received. Unknown name \"thinkingBudget\" at 'generation_config': Cannot find field."}]}]}}
client<llm> GeminiPro {
provider google-ai
options {
model "gemini-2.5-pro"
generationConfig {
temperature 0.0
thinkingBudget 0
}
}
}r30004954
07/17/2025, 9:27 PMpoetry and getting this error:
=> [backend 5/7] COPY pyproject.toml poetry.lock* ./ 0.5s
=> ERROR [backend 6/7] RUN poetry config virtualenvs.create false && poetry install --no-interaction --no-ansi --no-root 10.2s
------
> [backend 6/7] RUN poetry config virtualenvs.create false && poetry install --no-interaction --no-ansi --no-root:
4.283 Skipping virtualenv creation, as specified in config file.
4.704 Updating dependencies
4.707 Resolving dependencies...
9.276
[+] Running 0/1oodstewards-backend depends on baml-py (^0.4.1) which doesn't match any versions, version solving failed.
- Service backend Building 54.6s
failed to solve: process "/bin/sh -c poetry config virtualenvs.create false && poetry install --no-interaction --no-ansi --no-root" did not complete successfully: exit code: 1
- Any idea?
The relevant poetry portion is:
[tool.poetry.dependencies]
python = "^3.11"
fastapi = "^0.111.0"
uvicorn = {extras = ["standard"], version = "^0.29.0"}
sqlmodel = "^0.0.18"
psycopg = {extras = ["binary", "pool"], version = "^3.1.18"}
alembic = "^1.13.1"
baml-py = "^0.4.1"
python-dotenv = "^1.0.1"
pydantic-settings = "^2.2.1"
passlib = {extras = ["bcrypt"], version = "^1.7.4"}
python-jose = {extras = ["cryptography"], version = "^3.3.0"}
boto3 = "^1.34.108"danielvdao
07/17/2025, 9:12 PM"messages": [
{
"role": "user",
"content": "...."
}
vs.
"messages": [
{
"role": "user",
"content": [...., ....]
}
which is what I see in the prompt playground. I notice that Sonnet does not have this issue though. I am happy to reproduce an issue as well.
This is done when I try to do something like:
{{ _.role("user") }}
message
{{ _.role("user") }}
message2anerli
07/17/2025, 9:01 PMerror: BamlError: BamlInvalidArgumentError: Error: screenshot: Missing required parameter: screenshot
code: "InvalidArg"Luisda
07/17/2025, 8:30 PMclass MyClass1 {
key_1 string
key_2 string
}
class MyClass2 {
key_3 string
}
function MyFunction(args: string) -> MyClass1 | MyClass2[] {
}
Now, the LLM returned a raw string and BAML parsed it as one element of MyClass2, which is reeeeally a stretch. Apart from prompting, is there any way to tweak the fault tolerance of SAP?avalanche6283
07/17/2025, 12:32 AM.baml files that I'm calling via the async client.
I'm wondering if there's an easy way to add the custom tags to the function declaration in BAML - when I asked the BAML search agent it told me to use traceAsync in Typescript, rather than in the .baml files themselves (screenshot attached).
Is this right - am I missing something here?
https://cdn.discordapp.com/attachments/1253172325205934181/1395201435779727421/Screenshot_2025-07-16_at_17.13.59.png?ex=687a3ed7&is=6878ed57&hm=0c277b809cfb8183a8c31b826fed854dc2b55be2e6fae7aaa553a56a7969bdd0&jrod0940
07/16/2025, 11:30 PMjrod0940
07/16/2025, 10:40 PMβ
οΈ wrangler 4.14.0 (update available 4.24.4)
-------------------------------------------------------
β [ERROR] Build failed with 1 error:
β [ERROR] No loader is configured for ".node" files:
../node_modules/@boundaryml/baml-darwin-arm64/baml.darwin-arm64.node
../node_modules/@boundaryml/baml/native.js:159:23:
159 β return require('@boundaryml/baml-darwin-arm64')r30004954
07/16/2025, 3:46 PM# Base Image
FROM python:3.11-slim
# Set Working Directory
WORKDIR /app
# Copy Requirements
COPY requirements.txt .
# Install Dependencies
RUN pip install --upgrade pip && pip install -r requirements.txt
# Copy Application Code
COPY . .
# Generate the BAML client
RUN baml-cli generate
# Expose Port
EXPOSE 8000
# Run Command
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
- Any idea?deadcoder0904
07/16/2025, 8:27 AMClient: OpenRouterClient (moonshotai/kimi-k2:free) even though kimi-k2 returns perfect JSONAsvinTheGuy
07/16/2025, 2:38 AMgautam_matuag_74827
07/15/2025, 7:04 AMnpx @boundaryml/baml dev --preview
error: unexpected argument '--preview' found
and then if I ignore --preview and I see this
2025-07-14T18:05:05.638 [BAML INFO] Running "openapi-generator generate -i openapi.yaml -g rust -o . --additional-properties packageName=baml-client,avoidBoxedModels=true" in baml_client
2025-07-14T18:05:07.440 [BAML ERROR] Error generating clients: Client generation failed
Caused by:
on_generate command finished with exit code 1: openapi-generator generate -i openapi.yaml -g rust -o . --additional-properties packageName=baml-client,avoidBoxedModels=true
Stdout:
Stderr:
Exception in thread "main" org.openapitools.codegen.SpecValidationException: There were issues with the specification. The option can be disabled via validateSpec (Maven/Gradle) or --skip-validate-spec (CLI).
| Error count: 1, Warning count: 4
Errors:
-attribute components.schemas.BamlOptions.ClientRegistry is not of type `schema`
Warnings:
-attribute components.schemas.BamlOptions.ClientRegistry is not of type `schema`
at org.openapitools.codegen.config.CodegenConfigurator.toContext(CodegenConfigurator.java:717)
at org.openapitools.codegen.config.CodegenConfigurator.toClientOptInput(CodegenConfigurator.java:744)
at org.openapitools.codegen.cmd.Generate.execute(Generate.java:527)
at org.openapitools.codegen.cmd.OpenApiGeneratorCommand.run(OpenApiGeneratorCommand.java:32)
at org.openapitools.codegen.OpenAPIGenerator.main(OpenAPIGenerator.java:66)
2025-07-14T18:05:07.441 [BAML INFO] BAML-over-HTTP listening on port 2024, serving from ./baml_srcrjurney
07/14/2025, 8:39 PMbaml-cli generate works! Just baml-cli test fails with this key π¦ This feels like a bug!thom7387
07/14/2025, 8:23 PM