Commit 0fe8e10
authored
<!-- ELLIPSIS_HIDDEN -->
> [!IMPORTANT]
> Add `IfMatchesGoogleFileUri` to handle Google file URIs in media URL
resolution, updating `GoogleAIClient` and `process_media` logic.
>
> - **Behavior**:
> - Add `IfMatchesGoogleFileUri` variant to `ResolveMediaUrls` enum in
`mod.rs` to handle Google file URIs specifically.
> - Update `process_media` in `traits/mod.rs` to return the original
part if the URL starts with `gs://` when `IfMatchesGoogleFileUri` is
used.
> - Change `resolve_media_urls` to `IfMatchesGoogleFileUri` in
`GoogleAIClient` in `googleai_client.rs`.
> - **Dependencies**:
> - Add `regex` dependency to `Cargo.toml` and `Cargo.lock` for
potential pattern matching use.
> - **Misc**:
> - Update comments in `mod.rs` and `googleai_client.rs` to reflect new
behavior for Google file URIs.
>
> <sup>This description was created by </sup>[<img alt="Ellipsis"
src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=BoundaryML%2Fbaml&utm_source=github&utm_medium=referral)<sup>
for 25f577e. It will automatically
update as commits are pushed.</sup>
<!-- ELLIPSIS_HIDDEN -->
1 parent be1119f commit 0fe8e10
File tree
5 files changed
+10
-2
lines changed- engine
- baml-runtime
- src/internal/llm_client
- primitive/google
- traits
5 files changed
+10
-2
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
70 | 71 | | |
71 | 72 | | |
72 | 73 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
| 90 | + | |
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| 94 | + | |
94 | 95 | | |
95 | 96 | | |
96 | 97 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
141 | | - | |
| 141 | + | |
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
570 | 570 | | |
571 | 571 | | |
572 | 572 | | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
573 | 578 | | |
574 | 579 | | |
575 | 580 | | |
| |||
0 commit comments