-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
<!-- ELLIPSIS_HIDDEN --> > [!IMPORTANT] > Improved proxy handling in Rust and TypeScript by refining error messages, URL construction, and request routing logic. > > - **Rust Proxy Handling**: > - Improved error message in `to_base64_with_inferred_mime_type()` in `mod.rs` to include `media_url.url`. > - Refactored URL construction in `fetch_with_proxy()` in `mod.rs` to use `new_proxy_url` variable. > - **TypeScript Proxy Middleware**: > - Added logic in `extension.ts` to handle image GET requests by setting path to empty string. > - Removed trailing slashes from paths in `extension.ts`. > - Ensured `baml-original-url` header is used to route requests in `extension.ts`. > - **Miscellaneous**: > - Disabled ESLint rule `@typescript-eslint/no-misused-promises` in `extension.ts`. > > <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 e38f259. It will automatically update as commits are pushed.</sup> <!-- ELLIPSIS_HIDDEN -->
- Loading branch information
Showing
2 changed files
with
41 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters