Commit 4397cf1
lazy load env vars (#1949)
- allows lazy loading for env vars on function calls
- removes env vars from ctx manager
- supporting changes for cli, playground and codegen for all languages.
- refactors tracer to use dashmap and reuse until required env vars
change
TODO: @aaronvg to check AWS SSL on playground and ruby
---------
Co-authored-by: aaronvg <aaron@boundaryml.com>
Co-authored-by: Greg Hale <ImAlsoGreg@gmail.com>1 parent 9212af2 commit 4397cf1
102 files changed
Lines changed: 26494 additions & 6090 deletions
File tree
- .github/workflows
- engine
- baml-runtime
- src
- cli
- dotenv
- serve
- internal/prompt_renderer
- runtime
- test_executor
- tracing
- api_wrapper
- types
- tests
- baml-schema-wasm/src/runtime_wasm
- language_client_cffi
- src
- cffi
- types
- language_client_codegen/src
- go/templates
- python/templates
- ruby/templates
- typescript/templates
- language_client_go/pkg
- cffi
- language_client_python
- python_src/baml_py
- src
- types
- language_client_ruby/ext/ruby_ffi/src
- language_client_typescript
- src
- types
- typescript_src
- integ-tests
- go
- baml_client
- python-v1/baml_client
- python
- baml_client
- tests
- react/baml_client
- ruby
- baml_client
- typescript-esm/baml_client
- typescript
- baml_client
- tests
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
| 84 | + | |
| 85 | + | |
85 | 86 | | |
86 | 87 | | |
87 | | - | |
| 88 | + | |
| 89 | + | |
88 | 90 | | |
89 | | - | |
| 91 | + | |
| 92 | + | |
90 | 93 | | |
91 | 94 | | |
92 | | - | |
| 95 | + | |
| 96 | + | |
93 | 97 | | |
94 | | - | |
| 98 | + | |
| 99 | + | |
95 | 100 | | |
96 | 101 | | |
97 | | - | |
| 102 | + | |
| 103 | + | |
98 | 104 | | |
99 | | - | |
| 105 | + | |
| 106 | + | |
100 | 107 | | |
101 | 108 | | |
102 | | - | |
| 109 | + | |
| 110 | + | |
103 | 111 | | |
104 | 112 | | |
105 | 113 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
| 246 | + | |
246 | 247 | | |
247 | 248 | | |
248 | 249 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
58 | 59 | | |
59 | 60 | | |
60 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
61 | 80 | | |
62 | 81 | | |
63 | 82 | | |
| |||
311 | 330 | | |
312 | 331 | | |
313 | 332 | | |
314 | | - | |
315 | | - | |
| 333 | + | |
316 | 334 | | |
317 | 335 | | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
318 | 342 | | |
319 | | - | |
| 343 | + | |
320 | 344 | | |
321 | 345 | | |
322 | 346 | | |
| |||
395 | 419 | | |
396 | 420 | | |
397 | 421 | | |
398 | | - | |
| 422 | + | |
399 | 423 | | |
400 | 424 | | |
401 | | - | |
402 | | - | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
403 | 431 | | |
404 | 432 | | |
405 | 433 | | |
406 | 434 | | |
407 | | - | |
| 435 | + | |
408 | 436 | | |
409 | 437 | | |
410 | 438 | | |
| 439 | + | |
411 | 440 | | |
412 | 441 | | |
413 | 442 | | |
| |||
424 | 453 | | |
425 | 454 | | |
426 | 455 | | |
427 | | - | |
| 456 | + | |
428 | 457 | | |
429 | 458 | | |
| 459 | + | |
430 | 460 | | |
431 | 461 | | |
432 | 462 | | |
| |||
730 | 760 | | |
731 | 761 | | |
732 | 762 | | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
733 | 792 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
| 250 | + | |
250 | 251 | | |
251 | 252 | | |
252 | | - | |
| 253 | + | |
253 | 254 | | |
254 | 255 | | |
255 | 256 | | |
| |||
822 | 823 | | |
823 | 824 | | |
824 | 825 | | |
825 | | - | |
| 826 | + | |
826 | 827 | | |
827 | 828 | | |
828 | 829 | | |
| |||
947 | 948 | | |
948 | 949 | | |
949 | 950 | | |
950 | | - | |
| 951 | + | |
951 | 952 | | |
952 | 953 | | |
953 | 954 | | |
| |||
Lines changed: 15 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
464 | 464 | | |
465 | 465 | | |
466 | 466 | | |
467 | | - | |
468 | | - | |
| 467 | + | |
| 468 | + | |
469 | 469 | | |
470 | | - | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
471 | 473 | | |
472 | 474 | | |
473 | 475 | | |
| |||
521 | 523 | | |
522 | 524 | | |
523 | 525 | | |
524 | | - | |
525 | | - | |
| 526 | + | |
| 527 | + | |
526 | 528 | | |
527 | | - | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
528 | 532 | | |
529 | 533 | | |
530 | 534 | | |
| |||
617 | 621 | | |
618 | 622 | | |
619 | 623 | | |
620 | | - | |
621 | | - | |
| 624 | + | |
| 625 | + | |
622 | 626 | | |
623 | | - | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
624 | 630 | | |
625 | 631 | | |
626 | 632 | | |
| |||
0 commit comments