Closed mohdamir closed 3 months ago
Latest commit: 67919eafdf13e81c9b0485c156feb82bb9a0b536
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
The recent update introduces proxy support for network calls in the create-llama
module. It allows users to set a proxy URL via an environment variable. Key changes include adding a proxy initialization function, updating dependencies, and configuring type roots in TypeScript. This enhancement ensures smoother network operations behind proxies.
Files | Change Summary |
---|---|
.changeset/tame-crews-trade.md |
Introduces proxy support for create-llama operations. |
index.ts |
Adds a check for the GLOBAL_AGENT_HTTP_PROXY environment variable to enable proxy setup. |
package.json |
Updates dependencies to include global-agent , pnpm , and @types/global-agent . |
tsconfig.json |
Adds "typeRoots" to include additional type roots for TypeScript. |
types/global-agent.d.ts |
Declares a module for "global-agent/bootstrap" with an anyType export. |
🌟 In code's vast realm, a proxy's grace, Llamas connect at a brisk pace. With global agents set in place, Network calls now find their space. Dependencies aligned, types refined, Through proxies, our code's enshrined. 🌟
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Thanks @mohdamir added to create-llama@0.1.7
Problem: If user is on enterprise network and working behind proxy, create-llama is not able to connect to external servers.
Solution: Global Agent is used which will apply the proxy after reading them from evn. If proxy is not set it will be ignored. User can set the proxy URL as follows before running the create-llama tool.
Bash export GLOBAL_AGENT_HTTP_PROXY=http://localhost:8080 (replace by actual proxy URL) export GLOBAL_AGENT_HTTPS_PROXY=https://localhost:8080 (replace by actual proxy URL)
Cmd set GLOBAL_AGENT_HTTP_PROXY=http://localhost:8080 (replace by actual proxy URL) set GLOBAL_AGENT_HTTPS_PROXY=https://localhost:8080 (replace by actual proxy URL)
Summary by CodeRabbit
New Features
Dependencies
global-agent
andpnpm
.global-agent
.Configuration