https://www.boundaryml.com logo
hey, would anyone happen to know the
# questions
a
hey, would anyone happen to know the cause of the following issue while I try to run the unit tests?
Copy code
Unspecified error code: 2 Failed to build request: reqwest::Error {
      kind: Builder,
      source: RelativeUrlWithoutBase,
  }
a
can you post your client configuration?
a
client RelevanceModel{ provider openai-generic options { api_key env.SEEKR_API_KEY model env.ALIGNMENT_RELEVANCE_MODEL_NAME max_tokens env.ALIGNMENT_MAX_TOKENS base_url env.SEEKR_API_BASE temperature 0.3 default_role "user" // Required for using VLLM } }
a
it seems your base_url isn't set -- can you check the curl request?
on the playground
and check that it's set on the api keys panel
a
they tests are running fine in playground and I can run the jobs in metaflow. However, when I try to run locally (and CI-CD importantly) it fails
uv run baml-cli test --from llm_training/alignment  -i ExtractInstructionRelevance -i ExtractContentRelevance
the values are set in the pyproject.toml:
Copy code
[tool.pytest.ini_options]
env = [
"ALIGNMENT_RELEVANCE_MODEL_NAME = meta-llama/Llama-3.3-70B-Instruct",
    "ALIGNMENT_MAX_TOKENS = 2500",
    "SEEKR_API_BASE = http://llm-serving-router-service.llm.k8s.dev-01.oci.int.seekr.com/v1/inference/internal",

]
a
if you remove the env.SEEKR_API_BASE from your client config, and try to run a test in the playground youll see the same issue
can you make sure that locally you can print out that env var before calling baml?
to ensure it's set?
what version of baml_py are you in?
a
90.2
maybe i'm missing something but i can see the env variables are populated:
Copy code
LLM-trainingakhaled@REMLMHRXG2MJLH3 LLM-training % echo $SEEKR_API_BASE
http://llm-serving-router-service.llm.k8s.dev-01.oci.int.seekr.com/v1/inference/internal
LLM-trainingakhaled@REMLMHRXG2MJLH3 LLM-training % echo $ALIGNMENT_RELEVANCE_MODEL_NAME
meta-llama/Llama-3.3-70B-Instruct
LLM-trainingakhaled@REMLMHRXG2MJLH3 LLM-training % echo $ALIGNMENT_MAX_TOKENS
60000
a
ohh baml-cli test fails to load env vars properly
for a fix
a
thanks. Do you think I should update the baml version? is there a possibility of breaking the existing changes
a
nope
do you use typebuilder or stream types?
a
no
updating the version didn't break anything
thanks!